Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent 8e522c6 commit b76ae42
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, data=None, files=None, parent_page=None, *args, **kwargs):
"""
super().__init__(data, files, parent_page, *args, **kwargs)

instance = kwargs.get("instance", None)
instance = kwargs.get("instance")
if instance and instance.id:
if instance.is_internal_or_external_course_page and instance.course:
course_runs = instance.course.courseruns.all()
Expand Down
2 changes: 1 addition & 1 deletion sheets/management/commands/process_coupon_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def handle(self, *args, **options): # noqa: ARG002
coupon_request_handler = CouponRequestHandler()
self.stdout.write("Creating coupons and creating/updating Sheets...")
results = coupon_request_handler.process_sheet(
limit_row_index=options.get("row", None)
limit_row_index=options.get("row")
)
self.stdout.write(
self.style.SUCCESS(f"Coupon generation succeeded.\n{results}")
Expand Down
2 changes: 1 addition & 1 deletion sheets/management/commands/process_deferral_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def handle(self, *args, **options): # noqa: ARG002
defer_request_handler = DeferralRequestHandler()
self.stdout.write("Handling deferrals and updating spreadsheet...")
results = defer_request_handler.process_sheet(
limit_row_index=options.get("row", None)
limit_row_index=options.get("row")
)
self.stdout.write(
self.style.SUCCESS(f"Deferral sheet successfully processed.\n{results}")
Expand Down
2 changes: 1 addition & 1 deletion sheets/management/commands/process_refund_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def handle(self, *args, **options): # noqa: ARG002
refund_request_handler = RefundRequestHandler()
self.stdout.write("Handling refunds and updating spreadsheet...")
results = refund_request_handler.process_sheet(
limit_row_index=options.get("row", None)
limit_row_index=options.get("row")
)
self.stdout.write(
self.style.SUCCESS(f"Refund sheet successfully processed.\n{results}")
Expand Down

0 comments on commit b76ae42

Please sign in to comment.