Skip to content

Commit 99db3f8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2264aca commit 99db3f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

flexiblepricing/management/commands/configure_tiers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ def handle(self, *args, **kwargs): # pylint: disable=unused-argument # noqa: A
9494
f"Couldn't find the program {kwargs['program']}, stopping." # noqa: EM102
9595
) from exc
9696

97-
discount_abbrev = (
98-
program.readable_id
99-
if not course
100-
else course.readable_id
101-
)
97+
discount_abbrev = program.readable_id if not course else course.readable_id
10298

10399
current_year = date.today().year # noqa: DTZ011
104100
last_year = datetime(

0 commit comments

Comments
 (0)