Skip to content

Commit

Permalink
docs: correct location of existing time grain definition (#21309)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfirke authored Sep 8, 2022
1 parent b302818 commit 0112a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,13 +658,13 @@ def _try_json_readsha(filepath: str, length: int) -> Optional[str]:
# 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] = {}
Expand Down

0 comments on commit 0112a11

Please sign in to comment.