Skip to content

[WIP] Add preliminary support for VTODOs #1118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed Mar 17, 2022
commit 0bcff973fe4461b676f5078881fb5425bfadc381
3 changes: 2 additions & 1 deletion khal/khalendar/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
from dateutil import parser

from .. import utils
from ..icalendar import assert_only_one_uid, cal_from_ics, sanitize_vtodo
from ..icalendar import assert_only_one_uid, cal_from_ics
from ..icalendar import expand as expand_vevent
from ..icalendar import sanitize as sanitize_vevent
from ..icalendar import sanitize_vtodo
from ..icalendar import sort_key as sort_vevent_key
from .exceptions import (CouldNotCreateDbDir, NonUniqueUID,
OutdatedDbVersionError, UpdateFailed)
Expand Down
2 changes: 1 addition & 1 deletion khal/khalendar/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def summary(self):
else:
summary = self._vevents[self.ref].get('SUMMARY', '')
if self.task:
summary = '[{state}] {summary}'.format(state=self.task_status, summary=summary)
summary = f'[{self.task_status}] {summary}'
return summary

def update_summary(self, summary):
Expand Down