Amélioration de l'affichage

This commit is contained in:
theo@manjaro 2022-02-25 11:50:00 +01:00
parent 9932819d56
commit 93011ac5ed

View File

@ -59,7 +59,7 @@ def main() :
if room["free"]: if room["free"]:
deltasec = room["occupied_at"].timestamp()-date.timestamp() deltasec = room["occupied_at"].timestamp()-date.timestamp()
print(" - " + room["name"]+" | occuppée dans : "+str(int(deltasec/60+0.5))+" minutes") print(" - " + room["name"]+" | occuppée dans : "+str(int(deltasec/60+0.5))+" minutes")
print("Voici celles occupées : ") print("\nVoici celles occupées : \n")
for room in available_rooms.values() : for room in available_rooms.values() :
if room["name"] in favorites or len(favorites)==0: if room["name"] in favorites or len(favorites)==0:
if not room["free"]: if not room["free"]: