|
@@ -201,14 +201,21 @@ def main(parameterFile):
|
|
|
#needs project
|
|
|
setupRows=readSetup(importXLSX,pars)
|
|
|
#setupRows=setupRows[17:18]
|
|
|
+
|
|
|
+#let labkey know that we started a processing run
|
|
|
+#do not field fileUpload
|
|
|
+ del r['fileUpload']
|
|
|
+ r['status']=3
|
|
|
+ if r['ID']==None:
|
|
|
+ r['ID']=getID(xmlRoot)
|
|
|
+ db.modifyRows('update',pars['project'],'lists','importXML',[r])
|
|
|
for s in setupRows:
|
|
|
#needs project and schema for queries
|
|
|
importXML(importXLSX,pars|s,xmlRoot,dryRun=False)
|
|
|
|
|
|
#make calling importXML updates
|
|
|
+#we are done now, set status to OK(1)
|
|
|
r['status']=1
|
|
|
- r['ID']=getID(xmlRoot)
|
|
|
- del r['fileUpload']
|
|
|
db.modifyRows('update',pars['project'],'lists','importXML',[r])
|
|
|
|
|
|
|