diff --git a/server/apps/ability/views.py b/server/apps/ability/views.py index 627f8ed..7933916 100644 --- a/server/apps/ability/views.py +++ b/server/apps/ability/views.py @@ -682,9 +682,9 @@ def import_correct(path): data['lbmc'] = defaultv['lbmc'] if sheet['e'+str(i)].value: data['bclxh'] = sheet['e'+str(i)].value - defaultv['bclxh'] = data['bclxh'] + defaultv['bclxh'] = data['bclxh'] else: - data['bclxh'] = defaultv['bclxh'] + data['bclxh'] = defaultv['bclxh'] if 'bclxh' in defaultv else None if sheet['f'+str(i)].value: data['bclmc'] = sheet['f'+str(i)].value defaultv['bclmc'] = data['bclmc'] diff --git a/server/server/settings_dev.py b/server/server/settings_dev.py index dca12b6..c6c83b7 100644 --- a/server/server/settings_dev.py +++ b/server/server/settings_dev.py @@ -1,20 +1,20 @@ from .settings import * DEBUG = True DATABASES = { - # 'default': { - # 'ENGINE': 'django.db.backends.postgresql', - # 'NAME': 'cma', - # 'USER': 'postgres', - # 'PASSWORD': 'zctest1234', - # 'HOST': '47.95.0.242', - # 'PORT': '5432', - # } 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'cma', - 'USER': 'cma', - 'PASSWORD': 'cma123', - 'HOST': '172.16.80.102', + 'USER': 'postgres', + 'PASSWORD': 'zctest1234', + 'HOST': '47.95.0.242', 'PORT': '5432', } + # 'default': { + # 'ENGINE': 'django.db.backends.postgresql', + # 'NAME': 'cma', + # 'USER': 'cma', + # 'PASSWORD': 'cma123', + # 'HOST': '172.16.80.102', + # 'PORT': '5432', + # } }