1
0
Fork 0

management/fetch_data: Add workaround for db API change

Fixes #698.

[patch v2: Added default 'None' to prevent KeyError when using an old
           DB API endpoint]
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
merge-requests/840/head
Fabian P. Schmidt 2019-12-29 17:49:56 +01:00 committed by Pierros Papadeas
parent 859653e004
commit 74137ce8d8
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class Command(BaseCommand):
satellites_updated += 1
except Satellite.DoesNotExist:
# Add Satellite
satellite.pop('telemetries', None)
Satellite.objects.create(**satellite)
satellites_added += 1