display joignable crossfit sessions

This commit is contained in:
kbe
2025-07-18 15:01:28 +02:00
parent f3702c5320
commit 77d820c51e

View File

@@ -25,10 +25,10 @@ APP_VERSION = "5.09.21"
# Format: List of tuples (day_of_week, start_time, session_name_contains) # Format: List of tuples (day_of_week, start_time, session_name_contains)
# day_of_week: 0=Monday, 6=Sunday # day_of_week: 0=Monday, 6=Sunday
PREFERRED_SESSIONS = [ PREFERRED_SESSIONS = [
(4, "17:00", "WEIGHTLIFTING"), (4, "17:00", "WEIGHTLIFTING"), # Friday 17:00 WEIGHTLIFTING
(5, "12:30", "HYROX"), (5, "12:30", "HYROX"), # Saturday 12:30 HYROX
(2, "18:30", "CONDITIONING"), (2, "18:30", "CONDITIONING"), # Wednesday 18:30 CONDITIONING
(5, "15:15", "BIG WOD") # Changed to uppercase # (5, "15:15", "BIG WOD") # Saturday 15:15 BIG WOD
] ]
class CrossFitBooker: class CrossFitBooker:
@@ -397,6 +397,7 @@ if __name__ == "__main__":
for session in bookable_sessions: for session in bookable_sessions:
results = booker.matches_preferred_session(session, current_time) result = booker.matches_preferred_session(session, current_time)
print(session.get("name_activity")) print(session.get("name_activity") + " / " + str(result))
print(results)