make tableview responsive to key input
This commit is contained in:
@@ -12,7 +12,7 @@ def initdb(file):
|
||||
with sqlite3.connect(file) as connection:
|
||||
print("db connection", connection.total_changes)
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("CREATE TABLE jobs (star TEXT,tag INT ,title TEXT, location TEXT, company TEXT,link TEXT,pubdate TEXT,hash INT)")
|
||||
cursor.execute("CREATE TABLE jobs (star TEXT,tag INT ,title TEXT, location TEXT, company TEXT,link TEXT,pubdate TEXT,hash INT,viewed INT)")
|
||||
sys.exit()
|
||||
def rmdb(file,table):
|
||||
with sqlite3.connect(file) as connection:
|
||||
@@ -93,7 +93,7 @@ def writedb(jobs):
|
||||
log("Hash already exist")
|
||||
else:
|
||||
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))
|
||||
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 isStillValid(file,skiprows):
|
||||
rows = [0,0,0]
|
||||
|
||||
Reference in New Issue
Block a user