Stopped trying to pull from a one indexed list, as we no longer use that in key'd tables
This commit is contained in:
parent
061562b60d
commit
17b9e0253b
|
@ -155,7 +155,7 @@ class Deviantart:
|
||||||
if content is None or content['subbed'] is None:
|
if content is None or content['subbed'] is None:
|
||||||
await ctx.send("You are not subscribed to anyone at the moment!")
|
await ctx.send("You are not subscribed to anyone at the moment!")
|
||||||
elif username in content['subbed']:
|
elif username in content['subbed']:
|
||||||
content[0]['subbed'].remove(username)
|
content['subbed'].remove(username)
|
||||||
await utils.update_content('deviantart', {'subbed': content[0]['subbed']}, key)
|
await utils.update_content('deviantart', {'subbed': content[0]['subbed']}, key)
|
||||||
await ctx.send("You have just unsubscribed from {}!".format(username))
|
await ctx.send("You have just unsubscribed from {}!".format(username))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue