Fixed code due to newfangled generator fuckery

master
Wilhelm Westermark 7 years ago
parent 001d83eb79
commit d5e4964c65

@ -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

Loading…
Cancel
Save