Skip to content

Commit

Permalink
Math outside SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Huji authored Feb 7, 2025
1 parent c3bba13 commit fb92755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HujiBot/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def run(self):
query_start = time.time()
conn = toolforge.connect(self.dbname, charset="utf8")
cursor = conn.cursor()
max_time = "SET SESSION MAX_STATEMENT_TIME = 60 * %d;" % (self.maxtime)
max_time = "SET SESSION MAX_STATEMENT_TIME = %d;" % (60 * self.maxtime)
cursor.execute(max_time)
max_len = "SET SESSION GROUP_CONCAT_MAX_LEN = 15000;"
cursor.execute(max_len)
Expand Down

0 comments on commit fb92755

Please sign in to comment.