Skip to content

Commit

Permalink
feat: add more submission status
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <[email protected]>
  • Loading branch information
Dup4 committed Nov 15, 2023
1 parent bb3589a commit 3079060
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/icpc/48th/shenyang/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contest_name":"第 48 届 ICPC 国际大学生程序设计竞赛区域赛沈阳站 - 正式赛","start_time":1699750800,"end_time":1699768800,"frozen_time":3600,"penalty":1200,"problem_quantity":13,"problem_id":["A","B","C","D","E","F","G","H","I","J","K","L","M"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":29,"silver":58,"bronze":87}},"balloon_color":[{"color":"#000","background_color":"#ff7f00"},{"color":"#000","background_color":"#9acd32"},{"color":"#000","background_color":"#ff0000"},{"color":"#000","background_color":"#000000"},{"color":"#000","background_color":"#ffffff"},{"color":"#000","background_color":"#ffff00"},{"color":"#000","background_color":"#778899"},{"color":"#000","background_color":"#87ceeb"},{"color":"#000","background_color":"#228b22"},{"color":"#000","background_color":"#006400"},{"color":"#000","background_color":"#800080"},{"color":"#000","background_color":"#ff1493"},{"color":"#000","background_color":"#ff69b4"}],"logo":{"preset":"ICPC"},"options":{"submission_timestamp_unit":"millisecond"}}
{"contest_name":"第 48 届 ICPC 国际大学生程序设计竞赛区域赛沈阳站 - 正式赛","start_time":1699750800,"end_time":1699768800,"frozen_time":3600,"penalty":1200,"problem_quantity":13,"problem_id":["A","B","C","D","E","F","G","H","I","J","K","L","M"],"group":{"official":"正式队伍","unofficial":"打星队伍"},"organization":"School","status_time_display":{"correct":true,"incorrect":true,"pending":true},"medal":{"official":{"gold":29,"silver":58,"bronze":87}},"balloon_color":[{"color":"#fff","background_color":"rgba(189, 14, 14, 0.7)"},{"color":"#fff","background_color":"rgba(149, 31, 217, 0.7)"},{"color":"#fff","background_color":"rgba(16, 32, 96, 0.7)"},{"color":"#000","background_color":"rgba(38, 185, 60, 0.7)"},{"color":"#000","background_color":"rgba(239, 217, 9, 0.7)"},{"color":"#fff","background_color":"rgba(243, 88, 20, 0.7)"},{"color":"#fff","background_color":"rgba(12, 76, 138, 0.7)"},{"color":"#000","background_color":"rgba(156, 155, 155, 0.7)"},{"color":"#000","background_color":"rgba(4, 154, 115, 0.7)"},{"color":"#fff","background_color":"rgba(159, 19, 236, 0.7)"},{"color":"#000","background_color":"rgba(42, 197, 202, 0.7)"},{"color":"#fff","background_color":"rgba(142, 56, 54, 0.7)"},{"color":"#000","background_color":"rgba(144, 238, 144, 0.7)"}],"logo":{"preset":"ICPC"},"options":{}}
12 changes: 6 additions & 6 deletions origin-data/icpc/48th/shenyang/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ def work(data_dir: str, c: Contest, fetch_uri: str):
log.info("loop start")

try:
d.fetch().parse_teams().parse_runs().update_contest()
d.fetch().update_contest().parse_teams().parse_runs()

handle_teams(d.teams)
handle_runs(c, d.runs)

utils.output(os.path.join(data_dir, "config.json"), c.get_dict)
utils.output(os.path.join(data_dir, "team.json"),
d.teams.get_dict)
utils.output(os.path.join(data_dir, "run.json"),
d.runs.get_dict)
# utils.output(os.path.join(data_dir, "config.json"), c.get_dict)
# utils.output(os.path.join(data_dir, "team.json"),
# d.teams.get_dict)
# utils.output(os.path.join(data_dir, "run.json"),
# d.runs.get_dict)

log.info("work successfully")
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion origin-data/icpc/48th/shenyang/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
xcpcio-board-spider == 0.0.55
xcpcio-board-spider == 0.0.58

0 comments on commit 3079060

Please sign in to comment.