otf-api 0.12.0__py3-none-any.whl → 0.12.1__py3-none-any.whl

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.
otf_api/__init__.py CHANGED
@@ -4,7 +4,7 @@ from otf_api.api import Otf
4
4
  from otf_api import models
5
5
  from otf_api.auth import OtfUser
6
6
 
7
- __version__ = "0.12.0"
7
+ __version__ = "0.12.1"
8
8
 
9
9
 
10
10
  __all__ = ["Otf", "OtfUser", "models"]
otf_api/api.py CHANGED
@@ -444,8 +444,8 @@ class Otf:
444
444
 
445
445
  def get_bookings_new(
446
446
  self,
447
- start_date: datetime | str | None = None,
448
- end_date: datetime | str | None = None,
447
+ start_date: datetime | date | str | None = None,
448
+ end_date: datetime | date | str | None = None,
449
449
  exclude_cancelled: bool = True,
450
450
  ) -> list[models.BookingV2]:
451
451
  """Get the bookings for the user. If no dates are provided, it will return all bookings
otf_api/utils.py CHANGED
@@ -60,7 +60,7 @@ def ensure_list(obj: list | Any | None) -> list:
60
60
  return obj
61
61
 
62
62
 
63
- def ensure_datetime(date_str: str | datetime | None, combine_with: time = MIN_TIME) -> datetime | None:
63
+ def ensure_datetime(date_str: str | datetime | date | None, combine_with: time = MIN_TIME) -> datetime | None:
64
64
  if not date_str:
65
65
  return None
66
66
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otf-api
3
- Version: 0.12.0
3
+ Version: 0.12.1
4
4
  Summary: Python OrangeTheory Fitness API Client
5
5
  Author-email: Jessica Smith <j.smith.git1@gmail.com>
6
6
  License-Expression: MIT
@@ -1,10 +1,10 @@
1
- otf_api/__init__.py,sha256=QbShJl50bmebZLa_dNvs9PAoexI6pHGY1d_3endsC7M,205
2
- otf_api/api.py,sha256=EtdFB-ZYQAP3b5Ghz-uNQIm_p6wr7Yf8fyJyL6iEBc0,67554
1
+ otf_api/__init__.py,sha256=Xp0zKth_NrmagVP6LiblO8dgapMBsx2rJ360uaDBa9k,205
2
+ otf_api/api.py,sha256=bDl9HOo_JPsiA_YR0HgkA2IL-4M0RwbpNla6VLYqKQE,67568
3
3
  otf_api/exceptions.py,sha256=GISekwF5dPt0Ol0WCU55kE5ODc5VxicNEEhmlguuE0U,1815
4
4
  otf_api/filters.py,sha256=fk2bFGi3srjS96qZlaDx-ARZRaj93NUTUdMJ01TX420,3702
5
5
  otf_api/logging.py,sha256=PRZpCaJ1F1Xya3L9Efkt3mKS5_QNr3sXjEUERSxYjvE,563
6
6
  otf_api/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- otf_api/utils.py,sha256=Yr_BKzQ28ARzHN5FvMkVIgZ1_3icZKaqFzs4SDv6ugw,4879
7
+ otf_api/utils.py,sha256=zO8J95StaTnt_VmxLrzb8IFtQJfJDqs9ioqTMDrkkRE,4886
8
8
  otf_api/auth/__init__.py,sha256=PuhtiZ02GVP8zVSn1O-fhaYm7JM_tq5yUFATk_-8upk,132
9
9
  otf_api/auth/auth.py,sha256=5cPELC9Soif5knDDHm55ii1OMEPkJlGUphAdbOEmaRo,13278
10
10
  otf_api/auth/user.py,sha256=XlK3nbqJA4fF5UFmw2tt0eAle4QOQd6trnW72QrBsx4,2681
@@ -31,8 +31,8 @@ otf_api/models/studio_detail.py,sha256=2gq0A27NOZGz_PTBvsB-dkzm01nYc9FHmx1NON6xp
31
31
  otf_api/models/studio_services.py,sha256=aGLQMQmjGVpI6YxzAl-mcp3Y9cHPXuH9dIqrl6E-78E,1665
32
32
  otf_api/models/telemetry.py,sha256=PQ_CbADW5-t-U2iEQJGugNy-c4rD0q76TfyIqeFnTho,3170
33
33
  otf_api/models/workout.py,sha256=P3xVTvcYrm_RdU6qi3Xm2BXTxxvhvF0dgoEcODY41AA,3678
34
- otf_api-0.12.0.dist-info/licenses/LICENSE,sha256=UaPT9ynYigC3nX8n22_rC37n-qmTRKLFaHrtUwF9ktE,1071
35
- otf_api-0.12.0.dist-info/METADATA,sha256=jmck88-0JUoy5Y8oezk2KnBJhJ63jxgwZX2xZu7OoKA,2145
36
- otf_api-0.12.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
37
- otf_api-0.12.0.dist-info/top_level.txt,sha256=KAhYg1X2YG0LkTuVRhUV1I_AReNZUVNdEan7cp0pEE4,8
38
- otf_api-0.12.0.dist-info/RECORD,,
34
+ otf_api-0.12.1.dist-info/licenses/LICENSE,sha256=UaPT9ynYigC3nX8n22_rC37n-qmTRKLFaHrtUwF9ktE,1071
35
+ otf_api-0.12.1.dist-info/METADATA,sha256=p8fnmEMCyWsqvkYuILlZlxblozmyH7ilGPeM5BkT_zE,2145
36
+ otf_api-0.12.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
37
+ otf_api-0.12.1.dist-info/top_level.txt,sha256=KAhYg1X2YG0LkTuVRhUV1I_AReNZUVNdEan7cp0pEE4,8
38
+ otf_api-0.12.1.dist-info/RECORD,,