mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Use True for True rather than 1
This commit is contained in:
parent
f9e12f79ca
commit
ded4128965
@ -269,13 +269,15 @@ class EventsStore(SQLBaseStore):
|
||||
"INSERT INTO events"
|
||||
" (stream_ordering, topological_ordering, event_id, type,"
|
||||
" room_id, content, processed, outlier, depth)"
|
||||
" VALUES (%s,?,?,?,?,?,?,?,?)"
|
||||
) % (stream_ordering,)
|
||||
" VALUES (?,?,?,?,?,?,?,?,?)"
|
||||
)
|
||||
|
||||
txn.execute(
|
||||
sql,
|
||||
(event.depth, event.event_id, event.type, event.room_id,
|
||||
content, True, outlier, event.depth)
|
||||
(
|
||||
stream_ordering, event.depth, event.event_id, event.type,
|
||||
event.room_id, content, True, outlier, event.depth
|
||||
)
|
||||
)
|
||||
|
||||
if context.rejected:
|
||||
@ -321,7 +323,7 @@ class EventsStore(SQLBaseStore):
|
||||
"event_id": event.event_id,
|
||||
"prev_event_id": e_id,
|
||||
"room_id": event.room_id,
|
||||
"is_state": 1,
|
||||
"is_state": True,
|
||||
},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user