Выбирает нужного, но удаляет меня!
DEBUG:peewee:('SELECT "t1"."id", "t1"."group_id", "t1"."first_name", "t1"."username", "t1"."is_teacher", "t1"."teacher_name", "t1"."teacher_id", "t1"."notify", "t1"."state", "t1"."is_registered", "t1"."spam_count", "t1"."messages_count", "t1"."timestamp" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', [ CHAT ID ЮЗЕРА , 1, 0])
DEBUG:peewee:('UPDATE "user" SET "group_id" = ?, "first_name" = ?, "username" = ?, "is_teacher" = ?, "teacher_name" = ?, "teacher_id" = ?, "notify" = ?, "state" = ?, "is_registered" = ?, "spam_count" = ?, "messages_count" = ?, "timestamp" = ? WHERE ("id" = ?)', [None, ' ИМЯ ЮЗЕРА ‘, ' НИК ЮЗЕРА ’, False, None, None, False, 1, False, 0, 16, datetime.datetime(2018, 12, 2, 17, 19, 5, 695865), CHAT ID ЮЗЕРА ])
DEBUG:peewee:('SELECT "t1"."id", "t1"."group_id", "t1"."first_name", "t1"."username", "t1"."is_teacher", "t1"."teacher_name", "t1"."teacher_id", "t1"."notify", "t1"."state", "t1"."is_registered", "t1"."spam_count", "t1"."messages_count", "t1"."timestamp" FROM "user" AS "t1" WHERE ? LIMIT ? OFFSET ?', [ CHAT ID ЮЗЕРА , 1, 0])
DEBUG:peewee:('DELETE FROM "user" WHERE ("id" = ?)', [ МОЙ ЧАТ ID ])
Тебе осталось в своём коде залогировать message прямо как JSON и на него посмотреть.
Обсуждают сегодня