summary refs log tree commit diff
path: root/synapse/storage/push_rule.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-03-02 18:17:19 +0000
committerDavid Baker <dave@matrix.org>2015-03-02 18:17:19 +0000
commit6fab7bd2c1102c3f3254074cc996d950805531b4 (patch)
tree5ce2f6d16e3f832fb69b50eaea5592a00639c1f2 /synapse/storage/push_rule.py
parentOops, missed a replacement. (diff)
downloadsynapse-6fab7bd2c1102c3f3254074cc996d950805531b4.tar.xz
s/user_name/user/ as per mjark's comment
Diffstat (limited to 'synapse/storage/push_rule.py')
-rw-r--r--synapse/storage/push_rule.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/push_rule.py b/synapse/storage/push_rule.py
index c648c9960d..ea865b6abf 100644
--- a/synapse/storage/push_rule.py
+++ b/synapse/storage/push_rule.py
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
 
 class PushRuleStore(SQLBaseStore):
     @defer.inlineCallbacks
-    def get_push_rules_for_user_name(self, user_name):
+    def get_push_rules_for_user(self, user_name):
         sql = (
             "SELECT "+",".join(PushRuleTable.fields)+" "
             "FROM "+PushRuleTable.table_name+" "
@@ -46,7 +46,7 @@ class PushRuleStore(SQLBaseStore):
         defer.returnValue(dicts)
 
     @defer.inlineCallbacks
-    def get_push_rules_enabled_for_user_name(self, user_name):
+    def get_push_rules_enabled_for_user(self, user_name):
         results = yield self._simple_select_list(
             PushRuleEnableTable.table_name,
             {'user_name': user_name},
@@ -57,7 +57,7 @@ class PushRuleStore(SQLBaseStore):
         )
 
     @defer.inlineCallbacks
-    def get_push_rule_enabled_by_user_name_rule_id(self, user_name, rule_id):
+    def get_push_rule_enabled_by_user_rule_id(self, user_name, rule_id):
         results = yield self._simple_select_list(
             PushRuleEnableTable.table_name,
             {'user_name': user_name, 'rule_id': rule_id},