导入的时候导入自己的公司
This commit is contained in:
parent
2b1cc50486
commit
c0131e1c60
|
@ -84,10 +84,6 @@ def drquestions(companyid,path,userid):
|
||||||
right = sheet['j'+str(i)].value.replace(' ', '')
|
right = sheet['j'+str(i)].value.replace(' ', '')
|
||||||
resolution = sheet['k'+str(i)].value
|
resolution = sheet['k'+str(i)].value
|
||||||
level = sheet['l'+str(i)].value
|
level = sheet['l'+str(i)].value
|
||||||
objs = Questioncat.objects.filter(usecomp__partid=1,name=cate,deletemark=1)
|
|
||||||
if objs.exists():
|
|
||||||
cateobj = objs[0]
|
|
||||||
else:
|
|
||||||
objs = Questioncat.objects.filter(usecomp__partid=companyid,name=cate,deletemark=1)
|
objs = Questioncat.objects.filter(usecomp__partid=companyid,name=cate,deletemark=1)
|
||||||
if objs.exists():
|
if objs.exists():
|
||||||
cateobj = objs[0]
|
cateobj = objs[0]
|
||||||
|
|
Loading…
Reference in New Issue