Skip to content

Use the correct class for until in the github plugin - #405

Merged
psss merged 1 commit into
mainfrom
github-until-class
Jun 3, 2025
Merged

Use the correct class for until in the github plugin#405
psss merged 1 commit into
mainfrom
github-until-class

Conversation

@psss

@psss psss commented Jun 3, 2025

Copy link
Copy Markdown
Owner

Fix regression introduced in #376. The until date should use the did.base.Date class. Otherwise stats like commented issues traceback because of the missing datetime attribute. Include a basic sanity coverage which exercises all stats to prevent similar issues in the future.

Fix regression introduced in #376. The `until` date should use the
`did.base.Date` class. Otherwise stats like commented issues
traceback because of the missing `datetime` attribute. Include a
basic sanity coverage which exercises all stats to prevent similar
issues in the future.
@psss psss added this to the 0.22 milestone Jun 3, 2025
@psss

psss commented Jun 3, 2025

Copy link
Copy Markdown
Owner Author

For reference, this is the traceback:

  File "/home/psss/git/did/did/stats.py", line 76, in check
    self.fetch()
    ~~~~~~~~~~^^
  File "/home/psss/git/did/did/plugins/github.py", line 279, in fetch
    commented_issues, since.datetime, until.datetime, login
                                      ^^^^^^^^^^^^^^
AttributeError: 'datetime.date' object has no attribute 'datetime'

@psss
psss merged commit 7c6047f into main Jun 3, 2025
@psss
psss deleted the github-until-class branch June 3, 2025 20:42
@psss psss mentioned this pull request Jun 3, 2025
@psss psss self-assigned this Jun 3, 2025
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.

1 participant