rewrite survey parameter parser to be compatible with python 3.6+

This commit is contained in:
Никита Тырин 2025-05-08 16:11:09 +03:00
parent 07c97ff5ef
commit dafea2d4ad

View File

@ -23,7 +23,8 @@ from uplim.models import Pixel
# SURVEY PARAMETER PARSER
# **************************************************************
def parse_survey_param(raw: str) -> list[int]:
def parse_survey_param(raw):
surveys = set()
for part in raw.split(","):
if "-" in part:
@ -34,6 +35,7 @@ def parse_survey_param(raw: str) -> list[int]:
return sorted(surveys)
# PIXEL VIEW (MOSTLY FOR TESTING)
# **************************************************************