summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2023-01-02 16:55:29 +0100
committerTobias Brox <tobias@redpill-linpro.com>2023-01-02 16:55:36 +0100
commit29346809c9582942ab6b01167f15e2090a15bc26 (patch)
tree8fdf12561acd04c7afed537796c4ca37dd8591cb
parent3e7ad65993ea358967958496bb95d782693d2370 (diff)
downloadcalendar-cli-29346809c9582942ab6b01167f15e2090a15bc26.zip
bugfix for ical adding
-rwxr-xr-xcalendar_cli/cal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar_cli/cal.py b/calendar_cli/cal.py
index 137d9f3..0b7ca4e 100755
--- a/calendar_cli/cal.py
+++ b/calendar_cli/cal.py
@@ -736,7 +736,7 @@ def ical(ctx, ical_data, ical_file):
ical = ical.replace('\nEND:', f"{ctx.obj['ical_fragment']}\nEND:")
for c in ctx.obj['calendars']:
## TODO: this may not be an event - should make a Calendar.save_object method
- c.save_event(ical)
+ c.save_event(ical_data)
def _process_set_args(ctx, kwargs):
ctx.obj['set_args'] = {}