Исправил запись в БД SIGI

This commit is contained in:
zakhy 2025-04-16 15:55:53 +07:00
parent 99e8a4e10c
commit f27cb3cb9b

View File

@ -305,13 +305,13 @@ def load_sigi(**kwargs):
latitude=gem_coordonates[0],
longitude=gem_coordonates[1],
magnitude=data["mag"],
region=f"{organization} ({info})",
region=info,
source="SIGI",
)
else:
earthquake.latitude = gem_coordonates[0]
earthquake.longitude = gem_coordonates[1]
earthquake.region = f"{organization} ({info})"
earthquake.region = info
earthquake.save()
except Exception as err: