ruff: enable W, COM, EXE rules

This commit is contained in:
Dima Gerasimov 2024-08-28 03:05:24 +01:00
parent 47f116879f
commit bf96ca7d38
9 changed files with 19 additions and 14 deletions

View file

@ -228,7 +228,7 @@ def _process_db_threads_db2(db: sqlite3.Connection) -> Iterator[Res[Entity]]:
for r in db.execute(
'''
SELECT *, json_extract(sender, "$.user_key") AS user_key FROM messages
SELECT *, json_extract(sender, "$.user_key") AS user_key FROM messages
WHERE msg_type NOT IN (
-1, /* these don't have any data at all, likely immediately deleted or something? */
2 /* these are 'left group' system messages, also a bit annoying since they might reference nonexistent users */