dev #10
|
@ -30,7 +30,7 @@ def get_conf_stage(
|
|||
)
|
||||
processed_dict = get_processed_dict(task_stage)
|
||||
for idx, parser in enumerate(task_stage.parsers):
|
||||
if parser in processed_dict or parser.replace("-", "_") in processed_dict:
|
||||
if parser in processed_dict:
|
||||
fn, parser_model = processed_dict[parser]
|
||||
jon-lee marked this conversation as resolved
Outdated
|
||||
fn(parser_model, conf_stage.parsers[idx])
|
||||
jon-lee marked this conversation as resolved
Outdated
张泊明518370910136
commented
Do we need to support both kinds of names? Do we need to support both kinds of names?
李衍志523370910113
commented
probably yes, since it is easy for new ta to type it wrong probably yes, since it is easy for new ta to type it wrong
张泊明518370910136
commented
parsers name should be a str enum, force them to use the correct names parsers name should be a str enum, force them to use the correct names
李衍志523370910113
commented
ok, then removed. ok, then removed.
|
||||
elif parser == "diff":
|
||||
jon-lee marked this conversation as resolved
Outdated
张泊明518370910136
commented
underscore underscore
李衍志523370910113
commented
fixed fixed
|
||||
|
|
Loading…
Reference in New Issue
Block a user
should loop through
conf_stage.parsers
here and update thewith
field according to the parser name.I think its already implemented in each of the
fix_parsers
functionsNo, do not find the parser in the
fix_xxx
function. Instead, iterate through the parsers here and decide how to fill in thewith
.resolved.
Use a dict to store parser name, field, function to process.
resolved.