mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-10-12 20:50:40 -04:00
Update black to 19.10b0 (#6304)
* update version of black and also fix the mypy config being overridden
This commit is contained in:
parent
dfe0cd71b6
commit
020add5099
41 changed files with 191 additions and 166 deletions
|
@ -46,7 +46,7 @@ def _load_current_id(db_conn, table, column, step=1):
|
|||
cur.execute("SELECT MAX(%s) FROM %s" % (column, table))
|
||||
else:
|
||||
cur.execute("SELECT MIN(%s) FROM %s" % (column, table))
|
||||
val, = cur.fetchone()
|
||||
(val,) = cur.fetchone()
|
||||
cur.close()
|
||||
current_id = int(val) if val else step
|
||||
return (max if step > 0 else min)(current_id, step)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue