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


The following commit(s) were added to refs/heads/time_comparison_zeros by this 
push:
     new bdd397f036 Time Comparison:
bdd397f036 is described below

commit bdd397f03603df142ef2ebd9aa45ee47fa7d3a0c
Author: Antonio Rivero <[email protected]>
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,

Reply via email to