For now also send normal card uid

This commit is contained in:
Arti Zirk 2020-11-03 21:54:04 +02:00
parent b63fe150a0
commit b0a6de4a49
1 changed files with 1 additions and 1 deletions

View File

@ -75,12 +75,12 @@ class Main:
logging.info("Access card not in allow list, hash trail %s", uid_h[-10:])
success = False
data = {
"uid": value,
"uid_hash": uid_h,
"door": self.door,
"success": success,
"timestamp": time.strftime("%Y-%m-%d %H:%M:%S")
}
print(data)
requests.post(self.api_swipe, data=data, timeout=15)
def listen_notification(self):