Fix typo in database.user_settings.delete
This commit is contained in:
parent
20b90f955b
commit
3398398a11
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class UserSettings(Table):
|
|||
return default
|
||||
def find_prefix(self, user_id, prefix, default=[]):
|
||||
return self.find_user_settings(user_id, "%s%" % prefix, default)
|
||||
def delete(self, user_idsetting):
|
||||
def delete(self, user_id, setting):
|
||||
self.database.execute(
|
||||
"""DELETE FROM user_settings WHERE
|
||||
user_id=? AND setting=?""", [user_id, setting.lower()])
|
||||
|
|
Loading…
Reference in a new issue