This commit is contained in:
bton 2024-04-10 20:42:24 +02:00
parent 66296df433
commit 8135bde769

View file

@ -17,7 +17,6 @@ def get_reader():
def onTagSense(tag): def onTagSense(tag):
id = int.from_bytes(tag.identifier, "big") id = int.from_bytes(tag.identifier, "big")
response = requests.post(f"{url}tag_id", data={"id":id}) response = requests.post(f"{url}tag_id", data={"id":id})
print(response.json())
try: try:
if response.json()["mode"] == "balance" or response.json()["mode"] == "message": if response.json()["mode"] == "balance" or response.json()["mode"] == "message":
return True return True