error on https://edwardbetts.com/agenda/gaps #181

Closed
opened 2024-10-15 19:51:52 +01:00 by edward · 0 comments
Owner
Traceback (most recent call last)

    File "/usr/lib/python3/dist-packages/flask/app.py", line 2529, in wsgi_app

    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/flask/app.py", line 1825, in full_dispatch_request

    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/flask/app.py", line 1823, in full_dispatch_request

    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request

    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result

    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result

    raise self._exception
    ^^^^^^^^^^^^^^^^^^^^^

    File "/home/edward/src/agenda/web_view.py", line 216, in gaps_page

    busy_events = agenda.busy.get_busy_events(now.date(), app.config, trip_list)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/home/edward/src/agenda/agenda/busy.py", line 64, in get_busy_events

    title=trip.title + " " + trip.country_flags,
          ^^^^^^^^^^

    File "/home/edward/src/agenda/agenda/types.py", line 78, in title

    if travel["depart"] and travel["depart"].date() != self.start:
                            ^^^^^^^^^^^^^^^^^^^^^

    AttributeError: 'datetime.date' object has no attribute 'date'


``` Traceback (most recent call last) File "/usr/lib/python3/dist-packages/flask/app.py", line 2529, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result raise self._exception ^^^^^^^^^^^^^^^^^^^^^ File "/home/edward/src/agenda/web_view.py", line 216, in gaps_page busy_events = agenda.busy.get_busy_events(now.date(), app.config, trip_list) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/edward/src/agenda/agenda/busy.py", line 64, in get_busy_events title=trip.title + " " + trip.country_flags, ^^^^^^^^^^ File "/home/edward/src/agenda/agenda/types.py", line 78, in title if travel["depart"] and travel["depart"].date() != self.start: ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'datetime.date' object has no attribute 'date' ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: edward/agenda#181
No description provided.