error on https://edwardbetts.com/agenda/gaps #181
edward
commented 2024-10-15 19:51:52 +01:00
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'
```
edward
referenced this issue from a commit 2024-10-17 12:57:07 +01:00
🔧 Fix: Correct date handling in Trip class
edward
closed this issue 2024-10-17 12:57:07 +01:00
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?