mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Give server default rules the 'default' attribute and fix various brokenness.
This commit is contained in:
parent
2df41aa138
commit
aaf50bf6f3
3 changed files with 9 additions and 3 deletions
|
@ -176,7 +176,7 @@ class PushRuleStore(SQLBaseStore):
|
|||
txn.execute(sql, new_rule.values())
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def delete_push_rule(self, user_name, rule_id, **kwargs):
|
||||
def delete_push_rule(self, user_name, rule_id):
|
||||
"""
|
||||
Delete a push rule. Args specify the row to be deleted and can be
|
||||
any of the columns in the push_rule table, but below are the
|
||||
|
@ -186,7 +186,10 @@ class PushRuleStore(SQLBaseStore):
|
|||
user_name (str): The matrix ID of the push rule owner
|
||||
rule_id (str): The rule_id of the rule to be deleted
|
||||
"""
|
||||
yield self._simple_delete_one(PushRuleTable.table_name, kwargs)
|
||||
yield self._simple_delete_one(
|
||||
PushRuleTable.table_name,
|
||||
{'user_name': user_name, 'rule_id': rule_id}
|
||||
)
|
||||
|
||||
|
||||
class RuleNotFoundException(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue