From 4d0bb27451395fdacaa49a891d419f39d2c0b799 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sun, 3 Feb 2019 16:00:12 -0600 Subject: [PATCH] Correct way to remove from arrays --- cogs/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/config.py b/cogs/config.py index d00191b..51b1eb1 100644 --- a/cogs/config.py +++ b/cogs/config.py @@ -384,7 +384,7 @@ WHERE UPDATE guilds SET - custom_battles = array_remove(custom_battles, rules[$1]) + custom_battles = array_remove(custom_battles, custom_battles[$1]) WHERE id=$2 """ @@ -400,7 +400,7 @@ WHERE UPDATE guilds SET - custom_hugs = array_remove(custom_hugs, rules[$1]) + custom_hugs = array_remove(custom_hugs, custom_hugs[$1]) WHERE id=$2 """