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: use new endpoints for mexico_nuevo_leon_* #1122

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

yolile
Copy link
Member

@yolile yolile commented Nov 4, 2024

closes #1100

@yolile yolile requested a review from jpmckinney November 4, 2024 20:24
Comment on lines 24 to 28
# PeriodicSpider
date_format = 'year'
pattern = 'https://smpu.nl.gob.mx/siasi_ws/api/ocds/ListarProduccionXAnio?anio=%5B%7B"value":"{0}"%7D%5D'
formatter = staticmethod(parameters('anio'))
default_from_date = '2013'
Copy link
Member

Choose a reason for hiding this comment

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

date_format and default_from_date go in a # BaseSpider section: https://kingfisher-collect.readthedocs.io/en/latest/contributing/index.html



class MexicoNuevoLeonReleases(CompressedFileSpider):
class MexicoNuevoLeonReleases(MexicoNuevoLeonRecords):
Copy link
Member

Choose a reason for hiding this comment

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

Do we want this spider? I don't think we typically use a records endpoint to create a releases spider.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess we want it as it would be the only way to get the original releases, as the record contains compiled and linked releases only. I could create a base class instead of inheriting from Records though

Copy link
Member

Choose a reason for hiding this comment

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

Aha, makes sense. Please create a base class, since in future we might not want changes to the records spider to cause changes in the releases spider.

@yolile yolile requested a review from jpmckinney November 5, 2024 17:45
@yolile yolile merged commit cf4c4fe into main Nov 5, 2024
12 checks passed
@yolile yolile deleted the 1100-fix-nuevo-leon branch November 5, 2024 18:55
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.

mexico_nuevo_leon_releases: update endpoints
2 participants