Skip to content

Commit

Permalink
Shorten trigdate() to $T
Browse files Browse the repository at this point in the history
  • Loading branch information
jspricke committed Jul 7, 2022
1 parent b201aea commit 09c61aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remind.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def stdin_to_vobject(self, lines: str) -> Component:
def _parse_rdate(rdates: list[date], repeat: int = 1) -> str:
"""Convert from iCal rdate to Remind trigdate syntax."""
trigdates = [
(rdate + timedelta(days=d)).strftime("trigdate()=='%Y-%m-%d'")
(rdate + timedelta(days=d)).strftime("$T=='%Y-%m-%d'")
for rdate in rdates
for d in range(repeat)
]
Expand Down Expand Up @@ -515,7 +515,7 @@ def to_remind(
and trigdates
):
remind.extend(trigdates)
trigdates = dtstart.strftime("SATISFY [trigdate()>='%Y-%m-%d']")
trigdates = dtstart.strftime("SATISFY [$T>='%Y-%m-%d']")

if postdate:
remind.append(postdate)
Expand Down

0 comments on commit 09c61aa

Please sign in to comment.