导入校验能力bug
This commit is contained in:
parent
69429a360c
commit
9ff8d3106c
|
|
@ -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']
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
# }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue