mirror of https://gitlab.com/litecord/litecord.git
blueprints.users: fix settings being updated for everyone
This commit is contained in:
parent
134cc0eec8
commit
3b532fa8b0
|
|
@ -318,7 +318,8 @@ async def patch_current_settings():
|
||||||
await app.db.execute(f"""
|
await app.db.execute(f"""
|
||||||
UPDATE user_settings
|
UPDATE user_settings
|
||||||
SET {key}=$1
|
SET {key}=$1
|
||||||
""", j[key])
|
WHERE id = $2
|
||||||
|
""", j[key], user_id)
|
||||||
|
|
||||||
settings = await app.storage.get_user_settings(user_id)
|
settings = await app.storage.get_user_settings(user_id)
|
||||||
await app.dispatcher.dispatch_user(
|
await app.dispatcher.dispatch_user(
|
||||||
|
|
|
||||||
|
|
@ -496,7 +496,7 @@ class GuildMemberList:
|
||||||
"""Return if a state's ranges include the given
|
"""Return if a state's ranges include the given
|
||||||
item index."""
|
item index."""
|
||||||
|
|
||||||
ranges = self.state[sess_id]
|
ranges = self.state[session_id]
|
||||||
|
|
||||||
for range_start, range_end in ranges:
|
for range_start, range_end in ranges:
|
||||||
if range_start <= item_index <= range_end:
|
if range_start <= item_index <= range_end:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue