Skip to content
Permalink
Browse files

EMERGENCY PUSH to 'fix' #12 WARNING: BREAKS ALL OF THE THINGS (5)

  • Loading branch information...
dries007 committed May 23, 2018
1 parent e549596 commit 83e4a78265441197a1cf13b1b8d6b8daf3ab9f78
Showing with 2 additions and 2 deletions.
  1. +2 −2 Frontend/views/__init__.py
@@ -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"')

0 comments on commit 83e4a78

Please sign in to comment.
You can’t perform that action at this time.