diff --git a/main_cli.py b/main_cli.py index e311bbc..1005a54 100644 --- a/main_cli.py +++ b/main_cli.py @@ -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") +