Skip to content

Commit

Permalink
Fixing amounts for the default tiers for the configure_tiers command (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel authored Jul 26, 2023
1 parent e390d6b commit 4b75463
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flexiblepricing/management/commands/configure_tiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,23 @@ def handle(self, *args, **kwargs): # pylint: disable=unused-argument
"discount": {
"discount_code": f"{discount_abbrev}-fa-tier1-{current_year}",
"discount_type": "dollars-off" if not course else "percent-off",
"amount": 750 if not course else 0.75,
"amount": 750 if not course else 75,
},
},
{
"tier": {"threshold": 25000},
"discount": {
"discount_code": f"{discount_abbrev}-fa-tier2-{current_year}",
"discount_type": "dollars-off" if not course else "percent-off",
"amount": 650 if not course else 0.50,
"amount": 650 if not course else 50,
},
},
{
"tier": {"threshold": 50000},
"discount": {
"discount_code": f"{discount_abbrev}-fa-tier3-{current_year}",
"discount_type": "dollars-off" if not course else "percent-off",
"amount": 500 if not course else 0.25,
"amount": 500 if not course else 25,
},
},
{
Expand Down Expand Up @@ -153,7 +153,7 @@ def handle(self, *args, **kwargs): # pylint: disable=unused-argument
csvreader = csv.DictReader(
tierfile, fieldnames=("threshold", "type", "value")
)
for (idx, row) in enumerate(csvreader):
for idx, row in enumerate(csvreader):
self.stdout.write(
f"Read tier: threshold {row['threshold']}, discount type {row['type']}, value {row['value']}"
)
Expand Down

0 comments on commit 4b75463

Please sign in to comment.