Fix ID formatting in Problem class: Change separator from underscore to hyphen in the generated ID
Browse files- 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}
|
| 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 |
}
|