Casvt / MIND

A simple self hosted reminder application that can send push notifications to your device. Set the reminder and forget about it!
https://casvt.github.io/MIND/
GNU General Public License v3.0
201 stars 10 forks source link

Static Trigger button broken #62

Closed DANW999 closed 12 months ago

DANW999 commented 12 months ago

All of a sudden the trigger button for all and any static reminders has stopped working, even new ones I create. This happened right after I tried to add telegram emoticons into a reminder using Unicode.

File "/app/backend/static_reminders.py", line 259, in trigger_reminder logging.info(f'Triggering static reminder {self.id}') AttributeError: 'StaticReminders' object has no attribute 'id'

To Reproduce

  1. Log into Mind Reminders
  2. Click on any reminder under static or create a new one.
  3. Press trigger - nothing happens
  4. In the logs it says:-

    File "/app/frontend/api.py", line 770, in api_get_static_reminder reminders.trigger_reminder(s_id) File "/app/backend/static_reminders.py", line 259, in trigger_reminder logging.info(f'Triggering static reminder {self.id}') AttributeError: 'StaticReminders' object has no attribute 'id' [2023-08-27 19:37:27][waitress-6][INFO] Deleting static reminder 1

Expected behaviour When pressing trigger it should just sent the static reminder to the endpoint.

Screenshots N/A

Version info

Additional context N/A

DANW999 commented 12 months ago

So I restored an earlier version of my sqlite database an the trigger for static reminders still does not work. So I don't even think this had anything to do with me adding unicode to message. Same error message.

Casvt commented 12 months ago

Fixed. Will be included in next release.

DANW999 commented 11 months ago

Thank you @Casvt I look forward to it.