Update gis

Brightcells преди 6 години
родител
ревизия
cf26cd7dcc
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  1. 0 2
      commands/management/commands/gis.py

+ 0 - 2
commands/management/commands/gis.py

@@ -42,8 +42,6 @@ class Command(CompatibilityBaseCommand):
42 42
                         gisinfo = requests.get(settings.GIS_2_ADMINISTRATIVE_DIVISION.format(v.get('lat', 0), v.get('lon', 0))).json()
43 43
                     except Exception as e:
44 44
                         logger.info(e.message)
45
-                    if gisinfo.get('error') != 0:
46
-                        continue
47 45
 
48 46
                     zh1 = gisinfo.get('data', {}).get('zh1', '')
49 47