change user agent

This commit is contained in:
2024-08-19 12:55:56 +02:00
parent 45237337df
commit 1bf8198c70
4 changed files with 42 additions and 26 deletions

View File

@@ -150,7 +150,7 @@ def isStillValid(file,skiprows):
if resp.status >= 400 or isLink == False:
print("link is no more valid, remove item")
rm_cursor = connection.cursor()
rm_itm = rm_cursor.execute(f"""DELETE from jobs WHERE link = ? AND star != 1;""",(row[0],))
rm_itm = rm_cursor.execute("DELETE from jobs WHERE link = ? AND star != 1;",(row[0],))
print ("Deletion resultet in: ", rm_itm)
print("result of commit: ", connection.commit())
return 0