1
0
Fork 0
mirror of synced 2024-06-17 10:04:32 +12:00

Corrected issue (This used to work, rethinkdb wut r u doin?) causing new rules to fail to add

This commit is contained in:
phxntxm 2016-11-29 02:35:27 -06:00
parent 0bc7eb2dc0
commit 88af06b58c

View file

@ -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)