From 0112a112bfe3a42ffaa486dc299830dca10dbc5c Mon Sep 17 00:00:00 2001 From: Sam Firke Date: Thu, 8 Sep 2022 04:39:14 -0400 Subject: [PATCH] docs: correct location of existing time grain definition (#21309) --- superset/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/config.py b/superset/config.py index 29b644d27f7..51458d9501e 100644 --- a/superset/config.py +++ b/superset/config.py @@ -658,13 +658,13 @@ CSV_EXPORT = {"encoding": "utf-8"} # Time grain configurations # --------------------------------------------------- # List of time grains to disable in the application (see list of builtin -# time grains in superset/db_engine_specs.builtin_time_grains). +# time grains in superset/db_engine_specs/base.py). # For example: to disable 1 second time grain: # TIME_GRAIN_DENYLIST = ['PT1S'] TIME_GRAIN_DENYLIST: List[str] = [] # Additional time grains to be supported using similar definitions as in -# superset/db_engine_specs.builtin_time_grains. +# superset/db_engine_specs/base.py. # For example: To add a new 2 second time grain: # TIME_GRAIN_ADDONS = {'PT2S': '2 second'} TIME_GRAIN_ADDONS: Dict[str, str] = {}