rewrite survey parameter parser to be compatible with python 3.6+
This commit is contained in:
parent
07c97ff5ef
commit
dafea2d4ad
4
views.py
4
views.py
@ -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)
|
||||
# **************************************************************
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user