Skip to content

Commit

Permalink
fix: argument in kwarg dont need --
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Aug 18, 2023
1 parent db0decd commit 3845b8b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def add_arguments(self, parser):
def handle(self, *args, **kwargs): # lint-amnesty, pylint: disable=too-many-statements
logger.info('----Processing payment notifications to send email-----')
start_time = datetime.now()
specific_payment_notifications_ids = kwargs.get('--payment_notifications_ids', None)
if specific_payment_notifications_ids:
payment_notifications_ids = kwargs.get('payment_notifications_ids', None)
if payment_notifications_ids:
delivery_qs = PaymentNotification.objects.filter( # pylint: disable=no-member
id__in=specific_payment_notifications_ids,
id__in=payment_notifications_ids,
)
else:
delivery_qs = PaymentNotification.objects.filter( # pylint: disable=no-member
Expand Down

0 comments on commit 3845b8b

Please sign in to comment.