implement cancel button to cancel login profedure and continue with the

next entry
This commit is contained in:
2024-08-08 11:58:50 +02:00
parent 83e0d81ebe
commit e0e54adb5d
5 changed files with 27 additions and 26 deletions

View File

@@ -91,8 +91,10 @@ def writedb(jobs):
log(hash1);
if(cursor.execute("SELECT * FROM jobs WHERE hash = ?",(hash1,)).fetchone() != None):
log("Hash already exist")
elif(cursor.execute("SELECT * FROM jobs where link = ?",(job.link,)).fetchone() != None):
log("link already exist")
else:
print("NEW_ENTRY")
log("NEW_ENTRY")
cursor.execute("INSERT INTO jobs (star,tag,title,company,location,link,pubdate,hash,viewed) VALUES (?,?,?,?,?,?,?,?,?)",(job.starred,job.tag,job.title,job.company,job.location,job.link,job.date,hash1,0))
def viewedEntry(hash1):