From 6a84f8ff460abc184cd40e84c1d51b28553936b3 Mon Sep 17 00:00:00 2001 From: Nemo Date: Mon, 1 Apr 2024 22:11:31 +0530 Subject: [PATCH] We have events with the same url --- src/event-fetcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event-fetcher.py b/src/event-fetcher.py index 9e8c4a05..cb4a2764 100644 --- a/src/event-fetcher.py +++ b/src/event-fetcher.py @@ -89,14 +89,14 @@ def find_event(l): def insert_event_json(conn, url, event_json): d = json.dumps(event_json) cursor = conn.cursor() - cursor.execute('INSERT OR IGNORE INTO events (url, event_json) VALUES (?, ?)', (url, d)) + cursor.execute('INSERT INTO events (url, event_json) VALUES (?, ?)', (url, d)) def create_events_table(): conn = sqlite3.connect('events.db') cursor = conn.cursor() cursor.execute(''' CREATE TABLE IF NOT EXISTS events ( - url TEXT UNIQUE, + url TEXT, event_json TEXT ); ''')