diff --git a/softwares/database/database.py b/softwares/database/database.py index 7be0188fc06d5b672bfcbc27c9176b1b5001cc43..10e0105bc68f6412d61f04c78f18d84d2fa7aabb 100644 --- a/softwares/database/database.py +++ b/softwares/database/database.py @@ -40,14 +40,14 @@ def database_connection(): return mydb -def update_database(url: str, job_id: str, before: str, after: str): +def update_database(u: str, job_id: str, before: str, after: str): database = database_connection() mycursor = database.cursor(buffered=False) with open('../database/templates/update_success.txt', 'r') as file: update = file.read() update = update.replace('{{before}}', before).replace('{{after}}', after) - update = update.replace('{{url}}', url) + update = update.replace('{{u}}', u) update = update.replace('{{job_id}}', job_id) print(update)