docs: More comments on files

This commit is contained in:
kbe
2025-07-21 02:26:32 +02:00
parent 2bacf24aad
commit b99ddb4525
2 changed files with 38 additions and 18 deletions

View File

@@ -14,15 +14,19 @@ if __name__ == "__main__":
]
)
# Reduce the verbosity of the requests library's logging
logging.getLogger("requests").setLevel(logging.WARNING)
logging.info("Logging enhanced with request library noise reduction")
# Start the main runner
# Create an instance of the CrossFitBooker class
booker = CrossFitBooker()
# Attempt to log in to the CrossFit booking system
if not booker.login():
# If login fails, log the error and exit the script
logging.error("Failed to login - Traceback: %s", traceback.format_exc())
exit(1)
# Start continuous booking loop
# Start the continuous booking loop
booker.run()
logging.info("Script completed")
logging.info("Script completed")