unfinished

This commit is contained in:
2024-08-06 13:42:58 +02:00
parent 7b6dea99d4
commit 71b27c1452
3 changed files with 60 additions and 21 deletions

View File

@@ -95,6 +95,13 @@ def writedb(jobs):
print("NEW_ENTRY")
cursor.execute("INSERT INTO jobs (star,tag,title,company,location,link,pubdate,hash) VALUES (?,?,?,?,?,?,?,?,?)",(job.starred,job.tag,job.title,job.company,job.location,job.link,job.date,hash1,0))
def viewedEntry(hash1):
with sqlite3.connect("../db/sqlite3.db",timeout=10) as connection:
cursor = connection.cursor()
cursor.execute("UPDATE jobs SET viewed = '1' WHERE hash = ?",(hash1,))
print("modified rows: ",cursor.rowcount)
def isStillValid(file,skiprows):
rows = [0,0,0]
with sqlite3.connect(file,timeout=10) as connection: