add geo.txt support

pull/1122/head
Piero Toffanin 2022-01-25 10:27:45 -05:00
rodzic 9e119c5c5e
commit 528109bff8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ VALID_IMAGE_EXTENSIONS = ['.tiff', '.tif', '.png', '.jpeg', '.jpg']
def is_valid(file):
_, file_extension = path.splitext(file)
return file_extension.lower() in VALID_IMAGE_EXTENSIONS or file == 'gcp_list.txt'
return file_extension.lower() in VALID_IMAGE_EXTENSIONS or file == 'gcp_list.txt' or file == 'geo.txt'
def get_settings(request):
ds = get_current_plugin().get_user_data_store(request.user)