Fix typo in database.user_settings.delete

This commit is contained in:
jesopo 2018-08-28 12:38:59 +01:00
parent 20b90f955b
commit 3398398a11

View file

@ -175,7 +175,7 @@ class UserSettings(Table):
return default return default
def find_prefix(self, user_id, prefix, default=[]): def find_prefix(self, user_id, prefix, default=[]):
return self.find_user_settings(user_id, "%s%" % 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( self.database.execute(
"""DELETE FROM user_settings WHERE """DELETE FROM user_settings WHERE
user_id=? AND setting=?""", [user_id, setting.lower()]) user_id=? AND setting=?""", [user_id, setting.lower()])