Changeset ac7b16a


Ignore:
Timestamp:
Oct 11, 2024, 2:03:28 AM (5 weeks ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Parents:
69dd60c
Message:

fixup! Task #30. Allow anyone create or edit upcoming event

File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands/event.py

    r69dd60c rac7b16a  
    7474    )
    7575
    76     events[-1] = event_dict
     76    if len(events) > 0:
     77        events[-1] = event_dict
     78    else:
     79        events.append(event_dict)
    7780
    7881    await update.message.reply_text(
Note: See TracChangeset for help on using the changeset viewer.