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

TypeError: can't compare offset-naive and offset-aware datetimes #259

Open
sentry-io bot opened this issue Sep 26, 2019 · 0 comments
Open

TypeError: can't compare offset-naive and offset-aware datetimes #259

sentry-io bot opened this issue Sep 26, 2019 · 0 comments
Labels
2.5 issues with django-councilmatic>=2.5

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 26, 2019

Sentry Issue: CHICAGO-COUNCILMATIC-3D

TypeError: can't compare offset-naive and offset-aware datetimes
(3 additional frame(s) were not displayed)
...
  File "councilmatic_core/feeds.py", line 123, in items
    sponsored_bills = [s.bill for s in person.primary_sponsorships][:10]
  File "councilmatic_core/models.py", line 104, in primary_sponsorships
    return sorted((s for s in primary_sponsorships), key=sponsorship_sort, reverse=True)

TypeError: can't compare offset-naive and offset-aware datetimes
@hancush hancush added the 2.5 issues with django-councilmatic>=2.5 label Sep 26, 2019
hancush added a commit that referenced this issue May 20, 2021
Add timezone to bill sponsorship sort callback, connects #259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.5 issues with django-councilmatic>=2.5
Projects
None yet
Development

No branches or pull requests

1 participant