Update gis

Brightcells 6 years ago
parent
commit
5bf1731f10
1 changed files with 1 additions and 4 deletions
  1. 1 4
      commands/management/commands/gis.py

+ 1 - 4
commands/management/commands/gis.py

@@ -47,10 +47,7 @@ class Command(CompatibilityBaseCommand):
47 47
 
48 48
                     zh1 = gisinfo.get('data', {}).get('zh1', '')
49 49
 
50
-                    if not zh1:
51
-                        continue
52
-
53
-                    province_code = ProvinceModelMixin.PROVINCE_NAME_CODE_DICT.get(zh1)
50
+                    province_code = ProvinceModelMixin.PROVINCE_NAME_CODE_DICT.get(zh1) if zh1 else ''
54 51
 
55 52
                     # 手机归属地
56 53
                     if not province_code: