Skip to content

Commit

Permalink
fix: maxSize reset to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy committed Nov 19, 2024
1 parent 7ff9923 commit 05ea53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comet/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def check_max_results_per_resolution(cls, v):

@field_validator("maxSize")
def check_max_size(cls, v):
if not isinstance(v, int):
if not isinstance(v, float):
v = 0

if v < 0:
Expand Down

0 comments on commit 05ea53b

Please sign in to comment.