Skip to content

Commit

Permalink
Bug-fix: Risen title has no icon, which caused a 500 server response.
Browse files Browse the repository at this point in the history
  • Loading branch information
AllynH committed May 10, 2022
1 parent 5a4cb12 commit 9c30c87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions destiny_focus/bungie/parse_bungie_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def get_title(title_hash):
"""
title_full = get_definition('DestinyRecordDefinition', title_hash)

# print(emblem_full)
# print(title_full)

title_data ={
"icon" : title_full['displayProperties']['icon'],
"name" : title_full['displayProperties']['name'],
"description": title_full['displayProperties']['description'],
"title" : title_full['titleInfo']['titlesByGender']['Female'],
"icon" : title_full['displayProperties'].get('icon', ""),
"name" : title_full['displayProperties'].get('name', ""),
"description": title_full['displayProperties'].get('description', ""),
"title" : title_full['titleInfo']['titlesByGender'].get('Female', ""),
}

return title_data
Expand Down

0 comments on commit 9c30c87

Please sign in to comment.