This commit is contained in:
David Bryan 2019-10-19 00:01:42 -05:00
parent 13245217aa
commit df64743886

View file

@ -111,8 +111,9 @@ if(True):
if('HID Prox TAG ID:' in cardnumber.stdout.decode('ASCII')):
card = get_card_data(cardnumber.stdout.decode('ASCII'))
print(card)
current_time=datetime.now().isoformat(timespec='seconds')
print(str(current_time) + ' _Card Used_ ' + card, file=open(logfile, "a"))
current_time=str(datetime.now().isoformat(timespec='seconds'))
print(current_time)
print(current_time + ' _Card Used_ ' + card, file=open(logfile, "a"))
card_read=1
#return 'Hello, World!\n<br>Raw Card Number:' + raw_cardnumber + '<br> Card ID:' + card_number + ' FC:' + facility_code
return render_template('main.html',