Skip to content

Fix until returning type - #404

Closed
sandrobonazzola wants to merge 1 commit into
psss:mainfrom
sandrobonazzola:date_until_fix
Closed

Fix until returning type#404
sandrobonazzola wants to merge 1 commit into
psss:mainfrom
sandrobonazzola:date_until_fix

Conversation

@sandrobonazzola

Copy link
Copy Markdown
Collaborator

GitHub.until needs to return did.base.Date instead of datetime.date

@sandrobonazzola
sandrobonazzola requested a review from psss June 3, 2025 14:03
@sandrobonazzola

Copy link
Copy Markdown
Collaborator Author

@Felixoid can you please review?

@sandrobonazzola

Copy link
Copy Markdown
Collaborator Author

without this change I see:

did/plugins/github.py", line 281, in fetch
    commented_issues, since.datetime, until.datetime, login
                                      ^^^^^^^^^^^^^^
AttributeError: 'datetime.date' object has no attribute 'datetime'

GitHub.until needs to return did.base.Date instead of datetime.date

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
@Felixoid

Felixoid commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

Let me see. I remember the idea of until was that it was Date already. Not sure where it changed

@psss

psss commented Jun 3, 2025

Copy link
Copy Markdown
Owner

Ah, sorry, was so focused on finishing the last items before the release that I haven't noticed this one. Completely agree with the fix. I've covered this in #405 together with extending the test coverage a bit.

@psss psss closed this Jun 3, 2025
@sandrobonazzola
sandrobonazzola deleted the date_until_fix branch June 4, 2025 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants