forked from github/server
stop using the turn column from gamedb
This commit is contained in:
parent
f7b4ff3c4c
commit
adb626df3d
|
@ -45,9 +45,7 @@ class EPasswd:
|
||||||
def load_database(self, file):
|
def load_database(self, file):
|
||||||
conn = sqlite3.connect(file)
|
conn = sqlite3.connect(file)
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
c.execute('SELECT MAX(turn) FROM factions')
|
for row in c.execute('SELECT no, email, password FROM factions ORDER BY turn'):
|
||||||
args = c.fetchone()
|
|
||||||
for row in c.execute('SELECT no, email, password FROM factions WHERE turn=?', args):
|
|
||||||
(no, email, passwd) = row
|
(no, email, passwd) = row
|
||||||
self.set_data(baseconvert(no, 36), email, passwd)
|
self.set_data(baseconvert(no, 36), email, passwd)
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
Loading…
Reference in New Issue