Skip to content

Commit

Permalink
#1: Fix type check and get_row_id args
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jun 20, 2019
1 parent 3986258 commit 9870458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ def patch_entities(table, json_list):
:return: The list of updated rows.
"""
results = []
if type(json_list) == dict:
if type(json_list) is dict:
for key in json_list:
if key.upper() == "ID":
update_row_from_id(table, json_list[key], json_list)
result = get_row_by_id(json_list[key])
result = get_row_by_id(table, json_list[key])
results.append(result)
else:
for entity in json_list:
Expand Down

0 comments on commit 9870458

Please sign in to comment.