Fix Database.ChannelSettings.find SQL
This commit is contained in:
parent
738a353c52
commit
d4391cc6c5
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class ChannelSettings(Table):
|
|||
def find(self, channel_id: int, pattern: str, default: typing.Any=[]):
|
||||
values = self.database.execute_fetchall(
|
||||
"""SELECT setting, value FROM channel_settings WHERE
|
||||
channel_id=? setting LIKE '?'""", [channel_id, pattern.lower()])
|
||||
channel_id=? AND setting LIKE ?""", [channel_id, pattern.lower()])
|
||||
if values:
|
||||
for i, value in enumerate(values):
|
||||
values[i] = value[0], json.loads(value[1])
|
||||
|
|
Loading…
Reference in a new issue