From a0d72d8849b289a6f7c7be4e4219a46ccdd82ee2 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Mon, 15 Jul 2024 23:59:51 +0200 Subject: [PATCH] fix: int to float --- comet/templates/index.html | 2 +- comet/utils/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comet/templates/index.html b/comet/templates/index.html index f68adc7..c484583 100644 --- a/comet/templates/index.html +++ b/comet/templates/index.html @@ -635,7 +635,7 @@ return { indexers: indexers, maxResults: parseInt(maxResults), - maxSize: parseInt(maxSize) * 1073741824, + maxSize: parseFloat(maxSize) * 1073741824, resolutions: selectedResolutions, languages: selectedLanguages, debridService: debridService, diff --git a/comet/utils/models.py b/comet/utils/models.py index 4039a71..016d6f2 100644 --- a/comet/utils/models.py +++ b/comet/utils/models.py @@ -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] = ""