Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
EMERGENCY PUSH to 'fix' #12 WARNING: BREAKS ALL OF THE THINGS (5)
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed May 23, 2018
1 parent e549596 commit 83e4a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontend/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def deprecated_project_file_json(addonID: int, fileID: int):
data = requests.get('https://addons-v2.forgesvc.net/api/addon/%d/file/%d' % (addonID, fileID),
timeout=60,
headers={'AuthenticationToken': curse_login.get_token()}
).json()
return to_json_response(json.loads(json.dumps(data), object_hook=_fix_names))
).json(object_hook=_fix_names)
return to_json_response(data)
# token =
# r = to_json_response(curse.service.GetAddOnFile(addonID=addonID, fileID=fileID))
# r.headers.add('Warning', '299 - "Deprecated API"')
Expand Down

0 comments on commit 83e4a78

Please sign in to comment.