gpx limit fix - #19
This commit is contained in:
parent
e78d014ed1
commit
54375e0576
@ -1,7 +1,7 @@
|
||||
export REACT_APP_API_URL = http://$(HOST):$(API_PORT)
|
||||
export REACT_APP_THUNDERFOREST_API_KEY=
|
||||
export WEATHER_API=
|
||||
export REACT_APP_GPX_LIMIT_IMPORT=10
|
||||
export WEATHER_API=
|
||||
|
||||
# for dev env
|
||||
export CODACY_PROJECT_TOKEN=
|
||||
|
@ -368,8 +368,9 @@ def process_zip_archive(common_params, extract_dir):
|
||||
zip_ref.extractall(extract_dir)
|
||||
|
||||
new_activities = []
|
||||
if os.getenv('REACT_APP_GPX_LIMIT_IMPORT').isdigit():
|
||||
gpx_files_limit = int(os.getenv('REACT_APP_GPX_LIMIT_IMPORT'))
|
||||
gpx_files_limit = os.getenv('REACT_APP_GPX_LIMIT_IMPORT')
|
||||
if gpx_files_limit and gpx_files_limit.isdigit():
|
||||
gpx_files_limit = int(gpx_files_limit)
|
||||
else:
|
||||
gpx_files_limit = 10
|
||||
appLog.error('GPX limit not configured, set to 10.')
|
||||
|
Loading…
Reference in New Issue
Block a user