Skip to content

Commit

Permalink
fix datetime_from datetime_to date_from and date_to docstring about tz
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed Aug 26, 2024
1 parent 6d12723 commit b8b3ed4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openaq_api/openaq_api/v3/models/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def where(self) -> str:
Overrides the base QueryBaseModel `where` method
If `datetime_from` is a `date` or `datetime` without a timezone a timezone
is added as UTC.
is added as local timezone.
Returns:
string of WHERE clause if `datetime_from` is set
Expand Down Expand Up @@ -544,13 +544,13 @@ class DatetimeToQuery(QueryBaseModel):
def where(self) -> str:
"""Generates SQL condition for filtering to datetime.
Overrides the base QueryBaseModel `where` method
Overrides the base QueryBaseModel `where` method
If `datetime_to` is a `date` or `datetime` without a timezone a timezone
is added as UTC.
If `datetime_to` is a `date` or `datetime` without a timezone a timezone
is added as local timezone.
Returns:
string of WHERE clause if `datetime_to` is set
Returns:
string of WHERE clause if `datetime_to` is set
"""
tz = self.map("timezone", "timezone")
dt = self.map("datetime", "datetime")
Expand Down Expand Up @@ -587,7 +587,7 @@ def where(self) -> str:
Overrides the base QueryBaseModel `where` method
If `date_from` is a `date` or `datetime` without a timezone a timezone
is added as UTC.
is added as local timezone.
Returns:
string of WHERE clause if `date_from` is set
Expand Down Expand Up @@ -624,7 +624,7 @@ def where(self) -> str:
Overrides the base QueryBaseModel `where` method
If `date_to` is a `date` or `datetime` without a timezone a timezone
is added as UTC.
is added as local timezone.
Returns:
string of WHERE clause if `date_to` is set
Expand Down

0 comments on commit b8b3ed4

Please sign in to comment.