From adb626df3d83c74e3bd33e5a52b15211fa31ff1f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 19 Apr 2019 20:14:43 +0200 Subject: [PATCH 1/3] stop using the turn column from gamedb --- process/epasswd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/process/epasswd.py b/process/epasswd.py index bdb3c4a6d..3e0033236 100755 --- a/process/epasswd.py +++ b/process/epasswd.py @@ -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() From 6fcfca27ca20279a1ca0bea46d27e27d4734b5c9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 20 Apr 2019 08:15:27 +0200 Subject: [PATCH 2/3] Revert "stop using the turn column from gamedb" This reverts commit adb626df3d83c74e3bd33e5a52b15211fa31ff1f. --- process/epasswd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/process/epasswd.py b/process/epasswd.py index 3e0033236..bdb3c4a6d 100755 --- a/process/epasswd.py +++ b/process/epasswd.py @@ -45,7 +45,9 @@ class EPasswd: def load_database(self, file): conn = sqlite3.connect(file) c = conn.cursor() - for row in c.execute('SELECT no, email, password FROM factions ORDER BY turn'): + c.execute('SELECT MAX(turn) FROM factions') + args = c.fetchone() + for row in c.execute('SELECT no, email, password FROM factions WHERE turn=?', args): (no, email, passwd) = row self.set_data(baseconvert(no, 36), email, passwd) conn.close() From 97afaa29c34bd507e0ad0f895595db3092c2c4b5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 26 Apr 2019 06:10:17 +0200 Subject: [PATCH 3/3] increase maximum number of submissions per week from 20 to 30. --- process/accept-orders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/accept-orders.py b/process/accept-orders.py index 69a6ce28f..237184861 100755 --- a/process/accept-orders.py +++ b/process/accept-orders.py @@ -54,7 +54,7 @@ hostname = gethostname() orderbase = "orders.dir" sendmail = True # maximum number of reports per sender: -maxfiles = 20 +maxfiles = 30 # write headers to file? writeheaders = True # reject all html email?