Skip to content

Commit

Permalink
fix(notification): argument de la commande
Browse files Browse the repository at this point in the history
  • Loading branch information
calummackervoy committed Jul 3, 2024
1 parent 744e216 commit bfc2d8b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
class Command(BaseCommand):
help = "Envoyer les notifications en file d'attente avec le délai paramétré"

def handle(self, *args, **options):
def add_arguments(self, parser):
parser.add_argument("delay", type=str, help=f"le délai, un valeur de {str(NotificationDelay.values)}")
def add_arguments(self, parser):
parser.add_argument("delay", type=str, help=f"le délai, un valeur de {str(NotificationDelay.values)}")

def handle(self, *args, **options):
try:
delay = NotificationDelay(options["delay"])
except ValueError:
Expand Down

0 comments on commit bfc2d8b

Please sign in to comment.