Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove unnecessary global declarations in destination and query runne…
…r registration
  • Loading branch information
mirkan1 committed Mar 31, 2025
commit e9ba331be5c889ac6edf689311b4767dc2b989e0
2 changes: 0 additions & 2 deletions redash/destinations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def to_dict(cls):

destinations = {}


def register(destination_class):
global destinations
if destination_class.enabled():
logger.debug(
"Registering %s (%s) destinations.",
Expand Down
2 changes: 0 additions & 2 deletions redash/query_runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,7 @@ def get_response(self, url, auth=None, http_method="get", **kwargs):

query_runners = {}


def register(query_runner_class):
global query_runners
if query_runner_class.enabled():
logger.debug(
"Registering %s (%s) query runner.",
Expand Down