mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
.get() not needed as config is already validated by pydantic so it is 0 by default even if not defined by user
This commit is contained in:
@@ -528,7 +528,7 @@ async def get_torrent_hash(session: aiohttp.ClientSession, torrent: tuple):
|
||||
|
||||
def get_balanced_hashes(hashes: dict, config: dict):
|
||||
max_results = config["maxResults"]
|
||||
max_results_per_resolution = config.get("maxResultsPerResolution", 0)
|
||||
max_results_per_resolution = config["maxResultsPerResolution"]
|
||||
|
||||
max_size = config["maxSize"]
|
||||
config_resolutions = [resolution.lower() for resolution in config["resolutions"]]
|
||||
|
||||
Reference in New Issue
Block a user