Фикса
This commit is contained in:
parent
e2475ed15f
commit
1637d0e8ce
@ -1,22 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import io
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import traceback
|
||||
from datetime import datetime, timedelta
|
||||
from datetime import datetime
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
|
||||
from django.core.paginator import Paginator
|
||||
from django.db.models import Q
|
||||
from django.http import HttpResponse, JsonResponse
|
||||
from django.http import JsonResponse
|
||||
from django.shortcuts import redirect, render
|
||||
from django.views.decorators.cache import never_cache
|
||||
from pytz import utc
|
||||
|
||||
from apps.general.views.settingsmodule import get_settings
|
||||
from apps.seismicproc.forms.form_earthquake import EarthquakeForm
|
||||
from apps.seismicproc.models.model_earthquake import Earthquake
|
||||
from apps.util import generalmodule
|
||||
@ -171,6 +164,7 @@ def earthquake_list(request):
|
||||
|
||||
res = []
|
||||
for earthquake in earthquakes:
|
||||
magn = earthquake.magnitude if earthquake.magnitude else 0.0
|
||||
res.append(
|
||||
{
|
||||
"id": earthquake.id,
|
||||
@ -179,7 +173,7 @@ def earthquake_list(request):
|
||||
"lat": earthquake.latitude,
|
||||
"lon": earthquake.longitude,
|
||||
"depth": earthquake.depth,
|
||||
"magnitude": earthquake.magnitude,
|
||||
"magnitude": magn,
|
||||
"region": earthquake.region,
|
||||
"source": earthquake.source,
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ INSTALLED_APPS = [
|
||||
"""Информация о приложении """
|
||||
SITE_TITLE = "Многофункциональная система безопасности ОГР"
|
||||
SITE_TITLE_S = "МФСБ ОГР"
|
||||
APP_VER = "1.0.16.1"
|
||||
APP_VER = "1.0.17.0"
|
||||
APP_VEK = "2023 - 2025гг"
|
||||
APP_COPPIRIGHT = "Многофункциональная система безопасности ОГР"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user