Skip to content

Commit

Permalink
fix: int to float
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy committed Jul 15, 2024
1 parent b0aa42c commit a0d72d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion comet/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@
return {
indexers: indexers,
maxResults: parseInt(maxResults),
maxSize: parseInt(maxSize) * 1073741824,
maxSize: parseFloat(maxSize) * 1073741824,
resolutions: selectedResolutions,
languages: selectedLanguages,
debridService: debridService,
Expand Down
2 changes: 1 addition & 1 deletion comet/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ConfigModel(BaseModel):
languages: Optional[List[str]] = ["All"]
resolutions: Optional[List[str]] = ["All"]
maxResults: Optional[int] = 0
maxSize: Optional[int] = 0
maxSize: Optional[float] = 0
debridService: str
debridApiKey: str
debridStreamProxyPassword: Optional[str] = ""
Expand Down

0 comments on commit a0d72d8

Please sign in to comment.