Skip to content

handle limit-offset in templates #48

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

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

vincentsarago
Copy link
Member

@oliverroick I realized that we could access the query-parameters directly in the template, instead of having to change the python code.

FYI: I'm working on adding the HTML response into a Middleware, so I need to have templates that do not expect custom values provided, but just the regular stac-fastapi response

{% set urlq = url + '?' + params + '&' %}
{% else %}
{% set urlq = url + '?' %}
{% endif %}
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why this was removed, sorry I should have caught this during review

@vincentsarago vincentsarago merged commit 4a28944 into main Mar 25, 2025
2 checks passed
@vincentsarago vincentsarago deleted the patch/remove-custom-html-params branch March 25, 2025 07:40
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.

3 participants