Commit d330df5d authored by Ismail Moumni's avatar Ismail Moumni
Browse files


parent 103f9d43
Pipeline #678 failed with stage
in 12 seconds
......@@ -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 =
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment