Skip to content

poor man's recurrence #2846

Answered by Arwalk
gour asked this question in Community support
Jun 11, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Ok i think i have something that should work along the lines of what you're looking for (or at least easily adaptable to what you want).

First, i added a uda in my .taskrc

I wrote this simple on-modify.crecurr.py script.

this crecurr for custom recurrence is supposed to have a string in the format of {value}{unit}

#!/usr/bin/env python3

import sys
import json
import datetime
import re

DATETIME_FORMAT = "%Y%m%dT%H%M%SZ"

original_task = json.loads(sys.stdin.readline())
modified_task = json.loads(sys.stdin.readline())

crecurr = modified_task.get("crecurr", None)

# if we are actively making a task with crecurr "done"
if crecurr and modified_task["status"] == "completed":
    # reset it …

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@gour
Comment options

@Arwalk
Comment options

Answer selected by gour
@gour
Comment options

@Arwalk
Comment options

@gour
Comment options

@Arwalk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants