Fix if database hasn't been created yet.
Still broken on my setup, but at least fpdb now starts
This commit is contained in:
parent
83f21e822d
commit
ec9ce544ca
|
@ -71,6 +71,7 @@ class Database:
|
||||||
# a new session)
|
# a new session)
|
||||||
cur = self.connection.cursor()
|
cur = self.connection.cursor()
|
||||||
|
|
||||||
|
if self.fdb.wrongDbVersion == False:
|
||||||
self.hand_1day_ago = 0
|
self.hand_1day_ago = 0
|
||||||
cur.execute(self.sql.query['get_hand_1day_ago'])
|
cur.execute(self.sql.query['get_hand_1day_ago'])
|
||||||
row = cur.fetchone()
|
row = cur.fetchone()
|
||||||
|
@ -85,6 +86,8 @@ class Database:
|
||||||
self.hand_nhands_ago = 0 # todo
|
self.hand_nhands_ago = 0 # todo
|
||||||
#cur.execute(self.sql.query['get_table_name'], (hand_id, ))
|
#cur.execute(self.sql.query['get_table_name'], (hand_id, ))
|
||||||
#row = cur.fetchone()
|
#row = cur.fetchone()
|
||||||
|
else:
|
||||||
|
print "Bailing on DB query, not sure it exists yet"
|
||||||
self.saveActions = False if self.import_options['saveActions'] == False else True
|
self.saveActions = False if self.import_options['saveActions'] == False else True
|
||||||
|
|
||||||
def do_connect(self, c):
|
def do_connect(self, c):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user