From 88af06b58c380f2efffe24a9cd56e0ed175794e0 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 29 Nov 2016 02:35:27 -0600 Subject: [PATCH] Corrected issue (This used to work, rethinkdb wut r u doin?) causing new rules to fail to add --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index cad5ff7..2ef6fd7 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -455,7 +455,7 @@ class Mod: r_filter = {'server_id': ctx.message.server.id} entry = {'server_id': ctx.message.server.id, 'rules': [rule]} - update = lambda row: row['rules'].append(rule) + update = {'rules': r.row['rules'].append(rule)} if not await config.update_content('rules', update, r_filter): await config.add_content('rules', entry, r_filter)