파일 저장 항목 공란 추가
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"0-0": {
|
||||||
|
"path": "",
|
||||||
|
"path2": "",
|
||||||
|
"points": 0,
|
||||||
|
"category": "파일저장",
|
||||||
|
"item": "파일명 (수검번호.hwp/hwpx)"
|
||||||
|
},
|
||||||
"0-1": {
|
"0-1": {
|
||||||
"path": "boolean(//PAGEMARGIN[(@Bottom='5668'or @Bottom='5669') and (@Footer='2834' or @Footer='2835') and @Gutter='0' and (@Header='2834' or @Header='2835') and (@Left='5668' or @Left='5669') and (@Right='5668' or @Right='5669') and (@Top='5668' or @Top='5669')])",
|
"path": "boolean(//PAGEMARGIN[(@Bottom='5668'or @Bottom='5669') and (@Footer='2834' or @Footer='2835') and @Gutter='0' and (@Header='2834' or @Header='2835') and (@Left='5668' or @Left='5669') and (@Right='5668' or @Right='5669') and (@Top='5668' or @Top='5669')])",
|
||||||
"path2": null,
|
"path2": null,
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"0-0": {
|
||||||
|
"path": "",
|
||||||
|
"path2": "",
|
||||||
|
"points": 0,
|
||||||
|
"category": "파일저장",
|
||||||
|
"item": "파일명 (수검번호.hwp/hwpx)"
|
||||||
|
},
|
||||||
"0-1": {
|
"0-1": {
|
||||||
"path": "boolean(//PAGEMARGIN[(@Bottom='5668'or @Bottom='5669') and (@Footer='2834' or @Footer='2835') and @Gutter='0' and (@Header='2834' or @Header='2835') and (@Left='5668' or @Left='5669') and (@Right='5668' or @Right='5669') and (@Top='5668' or @Top='5669')])",
|
"path": "boolean(//PAGEMARGIN[(@Bottom='5668'or @Bottom='5669') and (@Footer='2834' or @Footer='2835') and @Gutter='0' and (@Header='2834' or @Header='2835') and (@Left='5668' or @Left='5669') and (@Right='5668' or @Right='5669') and (@Top='5668' or @Top='5669')])",
|
||||||
"path2": null,
|
"path2": null,
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"0-0": {
|
||||||
|
"path": "",
|
||||||
|
"path2": "",
|
||||||
|
"points": 0,
|
||||||
|
"category": "파일저장",
|
||||||
|
"item": "파일명 (수검번호.hwp/hwpx)"
|
||||||
|
},
|
||||||
"0-1": {
|
"0-1": {
|
||||||
"path": "boolean(//PAGEMARGIN[(@Bottom='5668'or @Bottom='5669') and (@Footer='2834' or @Footer='2835') and @Gutter='0' and (@Header='2834' or @Header='2835') and (@Left='5668' or @Left='5669') and (@Right='5668' or @Right='5669') and (@Top='5668' or @Top='5669')])",
|
"path": "boolean(//PAGEMARGIN[(@Bottom='5668'or @Bottom='5669') and (@Footer='2834' or @Footer='2835') and @Gutter='0' and (@Header='2834' or @Header='2835') and (@Left='5668' or @Left='5669') and (@Right='5668' or @Right='5669') and (@Top='5668' or @Top='5669')])",
|
||||||
"path2": null,
|
"path2": null,
|
||||||
|
|||||||
18
score5.py
18
score5.py
@@ -167,11 +167,11 @@ class XMLScorer:
|
|||||||
previous_first_digit = first_digit
|
previous_first_digit = first_digit
|
||||||
|
|
||||||
id = criterion_id
|
id = criterion_id
|
||||||
xpath = criterion['path']
|
xpath = criterion['path'] if 'path' in criterion else None
|
||||||
xpath2 = criterion['path2']
|
xpath2 = criterion['path2'] if 'path2' in criterion else None
|
||||||
search_value = criterion['searchValue']
|
search_value = criterion['searchValue'] if 'searchValue' in criterion else None
|
||||||
right_answer = criterion['value']
|
right_answer = criterion['value'] if 'value' in criterion else None
|
||||||
points = criterion['points']
|
points = criterion['points'] if 'points' in criterion else None
|
||||||
category = criterion['category']
|
category = criterion['category']
|
||||||
item = criterion['item']
|
item = criterion['item']
|
||||||
similar_text = None
|
similar_text = None
|
||||||
@@ -544,11 +544,11 @@ def main():
|
|||||||
exam_round = '2503'
|
exam_round = '2503'
|
||||||
exam_types = [
|
exam_types = [
|
||||||
'A',
|
'A',
|
||||||
'B',
|
# 'B',
|
||||||
'C',
|
# 'C',
|
||||||
]
|
]
|
||||||
test_mode = False
|
# test_mode = False
|
||||||
# test_mode = True
|
test_mode = True
|
||||||
|
|
||||||
output_excel_paths = []
|
output_excel_paths = []
|
||||||
for exam_type in exam_types:
|
for exam_type in exam_types:
|
||||||
|
|||||||
Reference in New Issue
Block a user