stop using the turn column from gamedb

This commit is contained in:
Enno Rehling 2019-04-19 20:14:43 +02:00
parent f7b4ff3c4c
commit adb626df3d
1 changed files with 1 additions and 3 deletions

View File

@ -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()