Землетрясения

This commit is contained in:
zakhy 2025-03-18 15:03:18 +07:00
parent 828b3302de
commit 0d73dd75e0

View File

@ -926,5 +926,10 @@ def test_circuit():
obj.velocity = random.uniform(10, MAX_SPEED_KPH)
obj.update_time = timezone.now()
obj.save()
test_earthquakes = Earthquake.objects.filter(source="Тест")
for earthquake in test_earthquakes:
earthquake.date_time = timezone.now()
earthquake.save()
except Exception:
logging.error(traceback.format_exc())