Skip to content

Commit

Permalink
Changed db directory
Browse files Browse the repository at this point in the history
  • Loading branch information
alouradou committed Mar 25, 2024
1 parent cc8dc19 commit 2140336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/db_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
}


def init_database():
def init_database(path='~/node/static/uploads/serenadoit.db'):
# Connexion à la base de données SQLite
conn = sqlite3.connect('../uploads/serenadoit.db')
conn = sqlite3.connect(path)
# Affihcer les tables
cursor = conn.cursor()

Expand Down Expand Up @@ -120,4 +120,4 @@ def detect_matching(cell, deleted_courses):


if __name__ == "__main__":
init_database()
init_database('~/node/static/uploads/serenadoit.db')

0 comments on commit 2140336

Please sign in to comment.