implement cancel button to cancel login profedure and continue with the
next entry
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user