You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ar...@apache.org on 2024/08/22 10:22:13 UTC
(superset) 05/07: Time Comparison:
This is an automated email from the ASF dual-hosted git repository.
arivero pushed a commit to branch time_comparison_zeros
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 8c02ce887899e3a81890d4a73eeb6b5515c7f9e8
Author: Antonio Rivero <an...@gmail.com>
AuthorDate: Tue Aug 20 11:24:06 2024 +0200
Time Comparison:
- Pylint fix
---
superset/common/query_context_processor.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/superset/common/query_context_processor.py b/superset/common/query_context_processor.py
index 40ec6008ea..62c93a2440 100644
--- a/superset/common/query_context_processor.py
+++ b/superset/common/query_context_processor.py
@@ -17,9 +17,9 @@
from __future__ import annotations
import copy
-from datetime import datetime
import logging
import re
+from datetime import datetime
from typing import Any, cast, ClassVar, TYPE_CHECKING, TypedDict
import numpy as np
@@ -378,7 +378,7 @@ class QueryContextProcessor:
# If parsing fails, it's not a valid date in the format YYYY-MM-DD
return False
- def get_time_offset_for_custom_or_inherit(
+ def get_offset_custom_or_inherit(
self,
offset: str,
outer_from_dttm: datetime,
@@ -443,7 +443,7 @@ class QueryContextProcessor:
# }
original_offset = offset
if self.is_valid_date(offset) or offset == "inherit":
- offset = self.get_time_offset_for_custom_or_inherit(
+ offset = self.get_offset_custom_or_inherit(
offset,
outer_from_dttm,
outer_to_dttm,