|
|
@ -46,7 +46,7 @@ if __name__ == '__main__':
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
print "Enter card ID:"
|
|
|
|
print "Enter card ID:"
|
|
|
|
cardID_input = keyboard.record(until='enter')
|
|
|
|
cardID_input = keyboard.record(until='enter')
|
|
|
|
cardID = keyboard.get_typed_strings(cardID_input)[0]
|
|
|
|
cardID = keyboard.get_typed_strings(cardID_input).next()
|
|
|
|
event = {}
|
|
|
|
event = {}
|
|
|
|
event["time"] = time.time()
|
|
|
|
event["time"] = time.time()
|
|
|
|
event["cardID"] = cardID
|
|
|
|
event["cardID"] = cardID
|
|
|
|