mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 22:49:29 -05:00
Ensure integer is an integer
This commit is contained in:
parent
ce829c2aef
commit
158a322e82
@ -34,7 +34,7 @@ def _load_max_id(db_conn, table, column):
|
||||
cur.execute("SELECT MAX(%s) FROM %s" % (column, table,))
|
||||
val, = cur.fetchone()
|
||||
cur.close()
|
||||
return val if val else 1
|
||||
return int(val) if val else 1
|
||||
|
||||
|
||||
class StreamIdGenerator(object):
|
||||
|
Loading…
Reference in New Issue
Block a user