feat: fixed linting issues

This commit is contained in:
Muhammad Zubair
2023-06-22 21:10:42 +05:00
committed by Phillip Shiu
parent 825d161d1a
commit ee968a1431
2 changed files with 3 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ class Command(BaseCommand):
expiration_period = current_date - relativedelta(years=1)
exceptional_expiration_period = current_date - relativedelta(years=1, months=6)
normal_entitlements = CourseEntitlement.objects.filter(
expired_at__isnull=True,created__lte=expiration_period,
expired_at__isnull=True, created__lte=expiration_period,
enrollment_course_run__isnull=True).exclude(course_uuid__in=MIT_SUPPLY_CHAIN_COURSES)
exceptional_entitlements = CourseEntitlement.objects.filter(

View File

@@ -113,9 +113,9 @@ def expire_and_create_entitlements(self, entitlements, support_user):
'support_user': support_user,
}
CourseEntitlementSupportDetail.objects.create(**support_detail)
LOGGER.info('created new entitlement with id %d in a correspondence of above expired entitlement', new_entitlement.id) # lint-amnesty, pylint: disable=line-too-long
LOGGER.info('created new entitlement with id %d in a correspondence of above expired entitlement', new_entitlement.id) # lint-amnesty, pylint: disable=line-too-long
except Exception as exc:
LOGGER.exception('Failed to expire entitlements that reached their expiration period',)
LOGGER.exception('Failed to expire entitlements that reached their expiration period',) # pylint: disable=broad-except
LOGGER.info('Successfully completed the task expire_and_create_entitlements after examining %d entries', entitlements.count()) # lint-amnesty, pylint: disable=line-too-long