Skip to content

Commit bdd31a2

Browse files
committed
fix bug in toxicresult
1 parent ee9166d commit bdd31a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kappabot_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def adjust_toxicity(message, lastused, toxicconn, toxicdb, toxic_adj_value):
166166
if toxicresult == None:
167167
t = (None, target_member.id, toxic_adj_value)
168168
toxicdb.execute('INSERT INTO toxic VALUES (?, ? , ?)', t)
169-
result = (name, value, self_toxic)
169+
result = (name, toxic_adj_value, self_toxic)
170170
else:
171171
value = toxicresult[2]
172172
value += toxic_adj_value

0 commit comments

Comments
 (0)