Don't keep printing `writing configuration`
A better solution would be to store it in memory (config with last seen) And every x seconds, write it
This commit is contained in:
parent
717c52d14e
commit
cf78914a09
2
main.py
2
main.py
|
@ -165,11 +165,11 @@ while True:
|
|||
"Tags": "neutral_face",
|
||||
},
|
||||
)
|
||||
print("Writing config...")
|
||||
# Update the last seen time
|
||||
config["faces"][name]["last_seen"] = datetime.datetime.now().strftime(
|
||||
DATETIME_FORMAT
|
||||
)
|
||||
# print("Writing config...")
|
||||
write_config()
|
||||
face_names.append(name)
|
||||
# Display the results
|
||||
|
|
Loading…
Reference in New Issue