Skip to content

Commit

Permalink
hotfix/disable questionnaire (#127)
Browse files Browse the repository at this point in the history
* Disable questionaire

* Reword comment

* Fix linting error
  • Loading branch information
nathanfranklin authored Jun 5, 2023
1 parent 70c9a32 commit 698da33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions geoapi/services/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ class FeaturesService:
)

ALLOWED_GEOSPATIAL_EXTENSIONS = IMAGE_FILE_EXTENSIONS + GPX_FILE_EXTENSIONS + GEOJSON_FILE_EXTENSIONS\
+ SHAPEFILE_FILE_EXTENSIONS + RAPP_FILE_EXTENSIONS
+ SHAPEFILE_FILE_EXTENSIONS
# RAPP_FILE_EXTENSIONS to be added in https://jira.tacc.utexas.edu/browse/DES-2462

ALLOWED_EXTENSIONS = IMAGE_FILE_EXTENSIONS + VIDEO_FILE_EXTENSIONS + AUDIO_FILE_EXTENSIONS + GPX_FILE_EXTENSIONS\
+ GEOJSON_FILE_EXTENSIONS + SHAPEFILE_FILE_EXTENSIONS + INI_FILE_EXTENSIONS + RAPP_FILE_EXTENSIONS
+ GEOJSON_FILE_EXTENSIONS + SHAPEFILE_FILE_EXTENSIONS + INI_FILE_EXTENSIONS
# RAPP_FILE_EXTENSIONS to be added in https://jira.tacc.utexas.edu/browse/DES-2462

@staticmethod
def get(featureId: int) -> Feature:
Expand Down Expand Up @@ -342,7 +344,7 @@ def fromFileObj(projectId: int, fileObj: IO, metadata: Dict, original_path: str
return FeaturesService.fromShapefile(projectId, fileObj, {}, additional_files, original_path)
elif ext in FeaturesService.INI_FILE_EXTENSIONS:
return FeaturesService.fromINI(projectId, fileObj, {}, original_path)
elif ext in FeaturesService.RAPP_FILE_EXTENSIONS:
elif False and ext in FeaturesService.RAPP_FILE_EXTENSIONS: # Activate for https://jira.tacc.utexas.edu/browse/DES-2462
return FeaturesService.fromRAPP(projectId, fileObj, {}, original_path)
else:
raise ApiException("Filetype not supported for direct upload. Create a feature and attach as an asset?")
Expand Down

0 comments on commit 698da33

Please sign in to comment.