|
@@ -63,7 +63,7 @@ def contribute():
|
|
|
|
|
|
|
|
|
def read_database(db_name):
|
|
|
- with open(f"{FOLDER}database_{db_name}.json") as file:
|
|
|
+ with open(f"{FOLDER}database/db_{db_name}.json") as file:
|
|
|
db_data = json.load(file)
|
|
|
return db_data
|
|
|
|
|
@@ -71,7 +71,7 @@ def read_database(db_name):
|
|
|
def add_to_database(db_name, data_to_add):
|
|
|
db_data = read_database(db_name)
|
|
|
db_data.append(data_to_add)
|
|
|
- with open(f"{FOLDER}database_{db_name}.json", "w") as file:
|
|
|
+ with open(f"{FOLDER}database/db_{db_name}.json", "w") as file:
|
|
|
json.dump(db_data, file, indent=4)
|
|
|
|
|
|
|