Avoid mixed types in the api for /stats
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user