unfinished
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user