mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1588: Fix broken export scripts
This commit is contained in:
parent
df209b9b8b
commit
3f394fa164
8 changed files with 10 additions and 8 deletions
|
@ -140,10 +140,10 @@ def main():
|
|||
""" Return a list of SQL statements. """
|
||||
|
||||
# Use the taskwarrior 2.0+ export command to filter and return JSON
|
||||
command = "task rc.verbose=nothing rc.json.array=no export " + " ".join(sys.argv[1:])
|
||||
command = "task rc.verbose=nothing rc.json.array=yes " + " ".join(sys.argv[1:]) + " export"
|
||||
|
||||
# Load each task from json to a python dict
|
||||
tasks = map(json.loads, commands.getoutput(command).split(",\n"))
|
||||
tasks = json.loads(commands.getoutput(command))
|
||||
|
||||
# Mangle datetime strings into python datetime objects
|
||||
tasks = map(parse_datetime, tasks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue