Skip to content

Commit

Permalink
fix mode setting
Browse files Browse the repository at this point in the history
  • Loading branch information
neocogent committed Dec 20, 2017
1 parent b35b127 commit 2c33cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mklivetestdb
Expand Up @@ -34,7 +34,7 @@ def api_call(cur, sid, url, apistr, save=True): #pylint:disable=redefined-outer-
print "%03d DUPLICATE CANCEL %s" % (call_count,apistr)
return None
if sid is None:
modestr = "order by random()" if len(sys.argv) > 2 and sys.argv[3] != 'all' else "where site=%d" % (((call_count+err_count) % site_count)+1)
modestr = "order by random()" if len(sys.argv) > 2 and sys.argv[2] != 'all' else "where site=%d" % (((call_count+err_count) % site_count)+1)
cur.execute("select site,url from sites %s limit 1;" % modestr)
sid,url = cur.fetchone()
if call_ts+tick-millis() > 0:
Expand Down

0 comments on commit 2c33cfc

Please sign in to comment.