Comment
This commit is contained in:
parent
c517a19c2d
commit
84a35f32c7
|
@ -285,6 +285,8 @@ class DeviceStore(SQLBaseStore):
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
for user_id, user_devices in devices.iteritems():
|
for user_id, user_devices in devices.iteritems():
|
||||||
|
# We bind literal True, as its database dependent how booleans are
|
||||||
|
# handled.
|
||||||
txn.execute(prev_sent_id_sql, (destination, user_id, True))
|
txn.execute(prev_sent_id_sql, (destination, user_id, True))
|
||||||
rows = txn.fetchall()
|
rows = txn.fetchall()
|
||||||
prev_id = rows[0][0]
|
prev_id = rows[0][0]
|
||||||
|
|
Loading…
Reference in New Issue