Fix var override

pull/1412/head
Piero Toffanin 2023-10-03 22:37:10 -04:00
rodzic 44b2495291
commit 4897d4e52a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -311,7 +311,7 @@ class Tiles(TaskNestedView):
if hillshade == '' or hillshade == '0': hillshade = None
if tilesize == '' or tilesize is None: tilesize = 256
if bands == 'auto' and formula:
bands, _ = get_auto_bands(task.orthophoto_bands, formula)
bands, _discard_ = get_auto_bands(task.orthophoto_bands, formula)
try:
tilesize = int(tilesize)
@ -561,7 +561,7 @@ class Export(TaskNestedView):
if formula and bands:
if bands == 'auto':
bands, _ = get_auto_bands(task.orthophoto_bands, formula)
bands, _discard_ = get_auto_bands(task.orthophoto_bands, formula)
try:
expr, _discard_ = lookup_formula(formula, bands)