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):
|
||||
conn = sqlite3.connect(file)
|
||||
c = conn.cursor()
|
||||
c.execute('SELECT MAX(turn) FROM factions')
|
||||
args = c.fetchone()
|
||||
for row in c.execute('SELECT no, email, password FROM factions WHERE turn=?', args):
|
||||
for row in c.execute('SELECT no, email, password FROM factions ORDER BY turn'):
|
||||
(no, email, passwd) = row
|
||||
self.set_data(baseconvert(no, 36), email, passwd)
|
||||
conn.close()
|
||||
|
|
Loading…
Reference in New Issue