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 StudentenWerkMenuParser #263

Merged

Conversation

jakobkoerber
Copy link
Member

@jakobkoerber jakobkoerber commented Sep 11, 2024

Fixes #257 by using the overview instead of the daily details pages

@jakobkoerber jakobkoerber linked an issue Sep 11, 2024 that may be closed by this pull request
@jakobkoerber jakobkoerber self-assigned this Sep 11, 2024
@jakobkoerber jakobkoerber added the bug Something isn't working label Sep 11, 2024
@jakobkoerber jakobkoerber reopened this Sep 20, 2024
@jakobkoerber jakobkoerber marked this pull request as ready for review September 20, 2024 20:06
dates += [date]
return dates
@staticmethod
def extract_date_from_html(tree: html.Element) -> Optional[datetime.date]:
Copy link
Member

Choose a reason for hiding this comment

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

Python does not quite have a concept of public/private.
I can access private methods (those starting with __) without any problems from outside the module.
I might get a linting warning/.., but those can be ignored for tests

=> I would prefer the following and the comments can be removed. We can do this in a followup if you'd like

Suggested change
def extract_date_from_html(tree: html.Element) -> Optional[datetime.date]:
def __extract_date_from_html(tree: html.Element) -> Optional[datetime.date]:

Copy link
Member

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@CommanderStorm CommanderStorm merged commit 0be5b23 into TUM-Dev:master Sep 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

German Dish fetching is broken
3 participants