Avoid mixed types in the api for /stats

This commit is contained in:
Matthias
2022-02-10 07:03:19 +01:00
parent af984bdc0d
commit be84a028c1
3 changed files with 6 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ class SellReason(BaseModel):
class Stats(BaseModel):
sell_reasons: Dict[str, SellReason]
durations: Dict[str, Union[str, float]]
durations: Dict[str, Optional[float]]
class DailyRecord(BaseModel):