Skip to content

Commit

Permalink
Update alfredo-query.py
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannicoppola committed Nov 9, 2023
1 parent 6119f63 commit 4c66020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/alfredo-query.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main():

#subsetting the tasks based on the mode
if MY_MODE == "today":
toShow = [task for task in allTasks if task['due'] and task['due']['date'] == today] # selecting tasks with due date = today
toShow = [task for task in allTasks if task['due'] and task['due']['date'].split("T")[0] == today] # selecting tasks with due date = today
if toShow:
toShow = sorted(toShow, key = lambda i: i['due']['date']) #sorting by due date
MYICON = 'icons/today.png'
Expand Down

0 comments on commit 4c66020

Please sign in to comment.