Skip to content
Snippets Groups Projects
Commit d330df5d authored by Ismail Moumni's avatar Ismail Moumni
Browse files

change

parent 103f9d43
No related branches found
No related tags found
1 merge request!5Adding json functions
Pipeline #678 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment