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

Fix placeholder typo #1381

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Fix placeholder typo #1381

merged 1 commit into from
Oct 24, 2023

Conversation

PascalLike
Copy link
Member

Overview

I'm using vector tiles with pg_tileserv, but I get this error:

  File "/pygeoapi/pygeoapi/provider/mvt.py", line 222, in get_tiles
    resp = session.get(f'{base_url}/{layer}/{z}/{y}/{x}.{f}{url_query}')  # noqa
NameError: name 'f' is not defined

It looks like a typo in the variable name for the URL placeholder, called f (variable not defined anywhere else) instead of format_, the extension for the tile.

Related Issue / Discussion

I didn't create an issue. It's a very simple error 😇

Additional Information

Contributions and Licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution.
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

@tomkralidis tomkralidis merged commit ec56484 into geopython:master Oct 24, 2023
2 checks passed
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