pufanyi commited on
Commit
124d643
·
1 Parent(s): d583653

Fix ID formatting in Problem class: Change separator from underscore to hyphen in the generated ID

Browse files
Files changed (1) hide show
  1. convert.py +1 -1
convert.py CHANGED
@@ -12,7 +12,7 @@ class Problem(BaseModel):
12
 
13
  def to_dict(self):
14
  return {
15
- "id": f"{self.year}_imo_{self.problem_id}",
16
  "problem": self.problem,
17
  "solution": self.solution
18
  }
 
12
 
13
  def to_dict(self):
14
  return {
15
+ "id": f"{self.year}-imo-{self.problem_id}",
16
  "problem": self.problem,
17
  "solution": self.solution
18
  }