mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Fixup add_pusher
This commit is contained in:
parent
260b498ee5
commit
13d37c3c56
2 changed files with 17 additions and 4 deletions
|
@ -453,7 +453,9 @@ class SQLBaseStore(object):
|
|||
keyvalues (dict): The unique key tables and their new values
|
||||
values (dict): The nonunique columns and their new values
|
||||
insertion_values (dict): key/values to use when inserting
|
||||
Returns: A deferred
|
||||
Returns:
|
||||
Deferred(bool): True if a new entry was created, False if an
|
||||
exisitng one was updated.
|
||||
"""
|
||||
return self.runInteraction(
|
||||
desc,
|
||||
|
@ -498,6 +500,10 @@ class SQLBaseStore(object):
|
|||
)
|
||||
txn.execute(sql, allvalues.values())
|
||||
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def _simple_select_one(self, table, keyvalues, retcols,
|
||||
allow_none=False, desc="_simple_select_one"):
|
||||
"""Executes a SELECT query on the named table, which is expected to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue