Skip to content

Commit

Permalink
fix: error outputs when testing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ever3tt committed Oct 2, 2023
1 parent cc6c40c commit 68c122b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions eox_nelp/payment_notifications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def get_payment_notifications_context(request):
user_id = request.GET.get("showpaymentnotificationsforuser", user_id)
count_view = False

all_notifications_for_user = PaymentNotification.objects.filter(cdtrans_lms_user_id=user_id) # pylint: disable=no-member

all_notifications_for_user = PaymentNotification.objects.filter(cdtrans_lms_user_id=user_id) # pylint: disable=no-member # pylint: disable=line-too-long # noqa: E501
if count_view:
for notification in all_notifications_for_user:
notification.internal_view_count += 1
Expand Down
2 changes: 1 addition & 1 deletion eox_nelp/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def plugin_settings(settings):
settings.INSTALLED_APPS.append(EOX_AUDIT_MODEL_APP)

try:
payments_notifications_context = 'eox_nelp.payment_notifications.context_processor.payments_notifications_context' # pylint: disable=line-too-long
payments_notifications_context = 'eox_nelp.payment_notifications.context_processor.payments_notifications_context' # pylint: disable=line-too-long # noqa: E501

if payments_notifications_context not in settings.TEMPLATES[0]['OPTIONS']['context_processors']:
settings.TEMPLATES[0]['OPTIONS']['context_processors'].append(payments_notifications_context)
Expand Down

0 comments on commit 68c122b

Please sign in to comment.