diff --git a/src/explain_history.py b/src/explain_history.py index 611831d..18c1ef6 100644 --- a/src/explain_history.py +++ b/src/explain_history.py @@ -55,7 +55,7 @@ def main() -> None: """ INSERT INTO messages (id, chat_id, sender_id, text, created_at) SELECT gen_random_uuid(), %s, %s, 'm', %s + (g || ' seconds')::interval - FROM generate_series(%s, %s) AS g + FROM generate_series(%s::bigint, %s::bigint) AS g """, (chat_id, user_id, START, count + 1, 10000), )