Exemple d'affichage des nouvelles données
This commit is contained in:
parent
8bf1b698b8
commit
2eefa30b46
@ -53,4 +53,11 @@ def main() :
|
||||
print("Les salles suivantes sont disponibles à " + str(date.hour) + ":" + str(date.minute) + ", le " + str(date.day) + " :\n")
|
||||
for room in available_rooms.values() :
|
||||
if room["free"]:
|
||||
print(" - " + room["name"])
|
||||
deltasec = room["occupied_at"].timestamp()-date.timestamp()
|
||||
print(" - " + room["name"]+" | occuppée dans : "+str(int(deltasec/60+0.5))+" minutes")
|
||||
print("Voici celles occupées : ")
|
||||
for room in available_rooms.values() :
|
||||
if not room["free"]:
|
||||
deltasec = room["free_at"].timestamp()-date.timestamp()
|
||||
print(" - " + room["name"]+" | libre dans : "+str(int(deltasec/60+0.5))+" minutes")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user