Fix giving warnings to new players
This commit is contained in:
parent
d2dc4d2deb
commit
00bf10f6c0
@ -620,7 +620,7 @@ def get_warning_sanctions(warn_id):
|
|||||||
return sanctions
|
return sanctions
|
||||||
|
|
||||||
def add_warning(tacc, thm, sacc, shm, amount, reason, notes, expires, need_ack):
|
def add_warning(tacc, thm, sacc, shm, amount, reason, notes, expires, need_ack):
|
||||||
teid, tlid = _get_ids(tacc, thm)
|
teid, tlid = _get_ids(tacc, thm, add=True)
|
||||||
seid, slid = _get_ids(sacc, shm)
|
seid, slid = _get_ids(sacc, shm)
|
||||||
ack = 0 if need_ack else 1
|
ack = 0 if need_ack else 1
|
||||||
conn = _conn()
|
conn = _conn()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user