From 1788b96f54afe2ca26c3f9f98ef0d06ae335c9c1 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sun, 18 Mar 2018 13:12:12 -0400 Subject: [PATCH] Key federation imports on the new immutable event_uri field instead of the mutable event_url --- events/management/commands/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/management/commands/import.py b/events/management/commands/import.py index 95f9cef..c79a1ec 100644 --- a/events/management/commands/import.py +++ b/events/management/commands/import.py @@ -18,7 +18,7 @@ class Command(BaseCommand): for record in json_data: record['federation_node'] = options['url'] record['federation_time'] = datetime.datetime.now() - Searchable.objects.update_or_create(defaults=record, event_url=record['event_url']) + Searchable.objects.update_or_create(defaults=record, event_uri=record['event_uri']) else: print("No URL in options!")