From 8317a9524a661ec3dae5dcd8a87b4ee659a40077 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 20 Jan 2019 21:32:22 -0700 Subject: [PATCH] Stop adding periods to usernames --- doorcontrol/pushcards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doorcontrol/pushcards.py b/doorcontrol/pushcards.py index 7a8b973..169be42 100644 --- a/doorcontrol/pushcards.py +++ b/doorcontrol/pushcards.py @@ -31,7 +31,7 @@ while True: c = conn.cursor() for row in c.execute('select owner, group_concat(serial) from cards where active=1 group by owner'): - username = row[0].replace(' ', '.').lower() + username = row[0].replace(' ', '').lower() logging.info('Read name: {}, username: {}, cards: {}'.format(row[0], username, row[1])) card_data[username] = row[1]