Skip to content

Commit

Permalink
backend: Rename unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ranta committed Jul 7, 2023
1 parent 4322369 commit 4746aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/hitas/views/apartment_max_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create(self, request, *args, **kwargs):

def retrieve(self, request, *args, **kwargs):
# Verify housing company and apartment exists (so we can raise an appropriate error)
hc_id, apartment_id = self.verify_housing_company_and_apartment(kwargs)
_, apartment_id = self.verify_housing_company_and_apartment(kwargs)

# Try to fetch the maximum price calculation
with model_or_404(ApartmentMaximumPriceCalculation):
Expand Down Expand Up @@ -77,7 +77,7 @@ def update(self, request, *args, **kwargs):
confirm = serializer.data["confirm"]

# Verify housing company and apartment exists (so we can raise an appropriate error)
hc_id, apartment_id = self.verify_housing_company_and_apartment(kwargs)
_, apartment_id = self.verify_housing_company_and_apartment(kwargs)

# Try to fetch the maximum price calculation
with model_or_404(ApartmentMaximumPriceCalculation):
Expand Down

0 comments on commit 4746aeb

Please sign in to comment.