Remove legacy switch clearing on member delete

This commit is contained in:
Ske 2018-07-16 00:42:09 +02:00
parent 5b539f558e
commit 77402e0d58

View File

@ -47,7 +47,6 @@ async def create_member(conn, system_id: int, member_name: str, member_hid: str)
@db_wrap
async def delete_member(conn, member_id: int):
logger.debug("Deleting member (id={})".format(member_id))
await conn.execute("update switches set member = null, member_del = true where member = $1", member_id)
await conn.execute("delete from members where id = $1", member_id)