carlosrsabreu / devo-abastecer

Twitter bot that publishes weekly the fuel prices updates on Madeira island.
https://twitter.com/devoabastecer
MIT License
10 stars 2 forks source link

[FIX]: Change JORAM ref link year from `2023` to `{date:%Y}` #63

Closed HarryVasanth closed 9 months ago

HarryVasanth commented 9 months ago

Related issues

Closes #62

What does this PR do?

Fixes the issue where The constants.py currently refers to the year 2023 due to debugging reasons.

Solution Overview

The reference for the year needs to be changed from 2023 to {date:%Y}

Implementation Details

# JORAM link 2023 - For Debugging
- JORAM_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%202023"
- JORAM_PDF_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%202023/{file}"
+ #JORAM_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%202023"
+ #JORAM_PDF_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%202023/{file}"

# JORAM link
- #JORAM_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%20{date:%Y}"
- #JORAM_PDF_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%20{date:%Y}/{file}"
+ JORAM_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%20{date:%Y}"
+ JORAM_PDF_LINK = "https://joram.madeira.gov.pt/joram/2serie/Ano%20de%20{date:%Y}/{file}"
carlosrsabreu commented 9 months ago

That's perfect, @HarryVasanth! Thank you so much for your contribution! 🙏