Skip to content

Commit

Permalink
Merge pull request #18 from infinite-options/ab_0905
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
adityabaravkar authored Sep 6, 2023
2 parents d6b0bcd + 1dbb351 commit 297d472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
import calendar
from werkzeug.exceptions import BadRequest


# OVERVIEW
Expand Down
2 changes: 1 addition & 1 deletion properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def post(self):

def put(self):
response = {}
payload = request.get_json()
payload = request.form.to_dict()
if payload.get('property_uid') is None:
raise BadRequest("Request failed, no UID in payload.")
key = {'property_uid': payload.pop('property_uid')}
Expand Down

0 comments on commit 297d472

Please sign in to comment.