diff options
author | 2018-02-11 18:56:08 +0000 | |
---|---|---|
committer | 2018-02-11 18:56:08 +0000 | |
commit | b93763375caabe01bfe744c6349ce6656318a0f3 (patch) | |
tree | 2081df48c592e631ba0a2bdf076d888ed7cff689 /pysite | |
parent | [Asana] Asana wraps everything in a "data" key for some reason (diff) |
[Asana] Asana wraps everything in a "data" key for some reason
Diffstat (limited to 'pysite')
-rw-r--r-- | pysite/views/api/asana.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysite/views/api/asana.py b/pysite/views/api/asana.py index c02320df..3436202c 100644 --- a/pysite/views/api/asana.py +++ b/pysite/views/api/asana.py @@ -155,7 +155,7 @@ class IndexView(APIView): else: resp = session.get(f"{USER_URL}/{user}") resp.raise_for_status() - user = resp.json() + user = resp.json()["data"] if user.get("photo"): photo = user["photo"]["image_128x128"] |