aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-15 18:17:32 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-15 18:17:32 +0000
commit95f2e76e9c54a9bde3af6683fac8fc560ac7e321 (patch)
tree7956704e330fbc6851cffdd95e1306800216f14d
parentMerge remote-tracking branch 'origin/master' (diff)
Actually parse the JSON correctly
-rw-r--r--bot/cogs/deployment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/deployment.py b/bot/cogs/deployment.py
index da0d3ef86..b586eb036 100644
--- a/bot/cogs/deployment.py
+++ b/bot/cogs/deployment.py
@@ -62,7 +62,9 @@ class Deployment:
color=Colour.blurple()
)
- for key, value in data.items():
+ for obj in data:
+ key, value = obj.items()[0]
+
embed.add_field(
name=key, value=value, inline=True
)