From 2cabf46bb54e2496c546fd87745d7abd99a5dcf2 Mon Sep 17 00:00:00 2001 From: Darko Date: Tue, 22 Apr 2014 13:14:13 +0200 Subject: [PATCH] Typo --- python/fixreleasenames_threaded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fixreleasenames_threaded.py b/python/fixreleasenames_threaded.py index 34c14e555..dbd198cc1 100644 --- a/python/fixreleasenames_threaded.py +++ b/python/fixreleasenames_threaded.py @@ -66,7 +66,7 @@ elif len(sys.argv) > 1 and (sys.argv[1] == "filename"): datas = cur[0].fetchall() elif len(sys.argv) > 1 and (sys.argv[1] == "md5"): while len(datas) == 0 and maxtries >= -5: - run = "SELECT DISTINCT rel.ID FROM releases rel INNER JOIN releasefiles rf ON rel.ID = rf.releaseID WHERE isrenamed = 0 AND rel.dehashstatus BETWEEN %s AND 0 AND rel.passwordstatus >= -1 AND (ishashed = 1 OR rf.name REGEXP'[a-fA-F0-9]{32} OR rf.name REGEXP'[a-fA-F0-9]{40}') ORDER BY postdate ASC LIMIT %s" + run = "SELECT DISTINCT rel.ID FROM releases rel INNER JOIN releasefiles rf ON rel.ID = rf.releaseID WHERE isrenamed = 0 AND rel.dehashstatus BETWEEN %s AND 0 AND rel.passwordstatus >= -1 AND (ishashed = 1 OR rf.name REGEXP'[a-fA-F0-9]{32}' OR rf.name REGEXP'[a-fA-F0-9]{40}') ORDER BY postdate ASC LIMIT %s" cur[0].execute(run, (maxtries, int(perrun[0])*int(run_threads[0]))) datas = cur[0].fetchall() maxtries = maxtries - 1