Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post zipped geojson #492

Merged
merged 8 commits into from
Oct 20, 2021
Merged

Post zipped geojson #492

merged 8 commits into from
Oct 20, 2021

Conversation

index-git
Copy link
Collaborator

Part of issue #169

  • Tests
  • Layman Test Client
  • Changlelog
  • Documentation

Optionally

  • Add dependency to doc/dependencies.md

@index-git index-git added this to the Release 1.15 milestone Oct 20, 2021
@index-git index-git requested a review from jirik October 20, 2021 11:49
@index-git index-git self-assigned this Oct 20, 2021
src/layman/layer/filesystem/input_file.py Outdated Show resolved Hide resolved
src/layman/layer/filesystem/input_file.py Outdated Show resolved Hide resolved
src/layman/layer/filesystem/input_file.py Outdated Show resolved Hide resolved
src/layman/layer/filesystem/input_file.py Outdated Show resolved Hide resolved
@index-git index-git force-pushed the post-zipped-geojson branch from 4be4b4f to e6bb6ce Compare October 20, 2021 15:46
files = []
if 'file' in request.files:
files = [
f for f in request.files.getlist("file")
if len(f.filename) > 0
]
if len(files) == 1 and os.path.splitext(files[0].filename)[1] in settings.COMPRESSED_FILE_EXTENSIONS:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use get_compressed_main_file_extension

@index-git index-git force-pushed the post-zipped-geojson branch from e6bb6ce to 7b61410 Compare October 20, 2021 16:08
@jirik jirik merged commit bb22d6f into master Oct 20, 2021
@index-git index-git deleted the post-zipped-geojson branch November 15, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants