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 ); ''')