pysportbot 0.0.11__tar.gz → 0.0.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {pysportbot-0.0.11 → pysportbot-0.0.12}/PKG-INFO +1 -1
  2. {pysportbot-0.0.11 → pysportbot-0.0.12}/pyproject.toml +1 -1
  3. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/booking.py +3 -2
  4. {pysportbot-0.0.11 → pysportbot-0.0.12}/LICENSE +0 -0
  5. {pysportbot-0.0.11 → pysportbot-0.0.12}/README.md +0 -0
  6. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/__init__.py +0 -0
  7. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/activities.py +0 -0
  8. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/authenticator.py +0 -0
  9. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/bookings.py +0 -0
  10. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/centres.py +0 -0
  11. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/endpoints.py +0 -0
  12. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/__init__.py +0 -0
  13. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/__main__.py +0 -0
  14. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/config_loader.py +0 -0
  15. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/config_validator.py +0 -0
  16. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/scheduling.py +0 -0
  17. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/service.py +0 -0
  18. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/service/threading.py +0 -0
  19. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/session.py +0 -0
  20. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/utils/__init__.py +0 -0
  21. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/utils/errors.py +0 -0
  22. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/utils/logger.py +0 -0
  23. {pysportbot-0.0.11 → pysportbot-0.0.12}/pysportbot/utils/time.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pysportbot
3
- Version: 0.0.11
3
+ Version: 0.0.12
4
4
  Summary: A python-based bot for automatic resasports slot booking
5
5
  Author: Joshua Falco Beirer
6
6
  Author-email: jbeirer@cern.ch
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pysportbot"
3
- version = "v0.0.11"
3
+ version = "v0.0.12"
4
4
  description = "A python-based bot for automatic resasports slot booking"
5
5
  authors = [
6
6
  { name = "Joshua Falco Beirer", email = "jbeirer@cern.ch" }
@@ -132,8 +132,9 @@ def schedule_bookings(
132
132
  time.sleep(remaining_time)
133
133
 
134
134
  # Global booking delay
135
- logger.info(f"Waiting {booking_delay} seconds before attempting booking.")
136
- time.sleep(booking_delay)
135
+ if booking_delay > 0:
136
+ logger.info(f"Waiting {booking_delay} seconds before attempting booking.")
137
+ time.sleep(booking_delay)
137
138
 
138
139
  # Submit bookings in parallel
139
140
  with ThreadPoolExecutor(max_workers=max_threads) as executor:
File without changes
File without changes