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:
slashtechno 2022-12-18 13:55:52 -06:00
parent 717c52d14e
commit cf78914a09
Signed by: slashtechno
GPG Key ID: 8EC1D9D9286C2B17
1 changed files with 1 additions and 1 deletions

View File

@ -165,11 +165,11 @@ while True:
"Tags": "neutral_face", "Tags": "neutral_face",
}, },
) )
print("Writing config...")
# Update the last seen time # Update the last seen time
config["faces"][name]["last_seen"] = datetime.datetime.now().strftime( config["faces"][name]["last_seen"] = datetime.datetime.now().strftime(
DATETIME_FORMAT DATETIME_FORMAT
) )
# print("Writing config...")
write_config() write_config()
face_names.append(name) face_names.append(name)
# Display the results # Display the results