We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5101419 + ed62a54 commit 4bbf3ffCopy full SHA for 4bbf3ff
habitipy/cli.py
@@ -589,12 +589,15 @@ class CastOnTask(Cast):
589
"""Casts spells on a task"""
590
def main(self, *arguments):
591
super().main()
592
- if len(arguments) != 3 or arguments[1] not in ["todos", "habits", "dailies"]:
+ if len(arguments) != 3 or arguments[1] not in ["todos", "habits", "dailies", "dailys"]:
593
self.log.error(_("usage: cast task (todos|habits|dailies) number"))
594
return
595
596
(spell, domain, number) = arguments
597
number = int(number)
598
+ if domain == "dailies":
599
+ domain = "dailys" # match what the API expects
600
+
601
tasks = self.api.tasks.user.get(type=domain)
602
603
if number > len(tasks):
0 commit comments