Преглед на файлове

导出原卷支持按courseId

deason преди 2 години
родител
ревизия
f2e1f5c365
променени са 3 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 0
      exportexamdetail/config.properties
  2. 1 0
      exportexamdetail/config.py
  3. 1 1
      exportexamdetail/examInf.py

+ 1 - 0
exportexamdetail/config.properties

@@ -2,5 +2,6 @@
 username=
 password=654321
 examId=4527
+courseId=
 outputpath=D:/output
 domain=hnsfdx.exam-cloud.cn

+ 1 - 0
exportexamdetail/config.py

@@ -5,6 +5,7 @@ parseer.read(os.getcwd()+os.sep+"config.properties",encoding="utf-8")
 username=parseer["config"]["username"]
 password=parseer["config"]["password"]
 examId=parseer["config"]["examId"]
+courseId=parseer["config"]["courseId"]
 outputpath=parseer["config"]["outputpath"]
 domain=parseer["config"]["domain"]
 

+ 1 - 1
exportexamdetail/examInf.py

@@ -46,7 +46,7 @@ def querydetail(curpage):
     login()
 
     url = "https://" + config.domain + "/api/ecs_oe_admin/exam/record/detail/list"
-    params = {"rootOrgId": config.rootOrgId, "examRecordDataId": None, "hasStranger": None, "courseId": None,
+    params = {"rootOrgId": config.rootOrgId, "examRecordDataId": None, "hasStranger": None, "courseId": config.courseId,
               "courseLevel": None,
               "examId": config.examId, "faceSuccessPercentLower": None, "faceSuccessPercentUpper": None,
               "identityNumber": None,