Stop adding periods to usernames

This commit is contained in:
Tanner Collin 2019-01-20 21:32:22 -07:00
parent 63adb9b9a3
commit 8317a9524a

View File

@ -31,7 +31,7 @@ while True:
c = conn.cursor() c = conn.cursor()
for row in c.execute('select owner, group_concat(serial) from cards where active=1 group by owner'): 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])) logging.info('Read name: {}, username: {}, cards: {}'.format(row[0], username, row[1]))
card_data[username] = row[1] card_data[username] = row[1]