Skip to content

Commit

Permalink
fix: fix AttributeError when running DG API on its own #345
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 25, 2022
1 parent 60a599e commit 7479cc3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions datagateway_api/src/common/filter_order_handler.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import logging

from datagateway_api.src.common.config import Config
from datagateway_api.src.datagateway_api.icat.filters import (
PythonICATIncludeFilter,
PythonICATLimitFilter,
PythonICATOrderFilter,
PythonICATSkipFilter,
)
from datagateway_api.src.search_api.filters import SearchAPIIncludeFilter
from datagateway_api.src.search_api.panosc_mappings import mappings
from datagateway_api.src.search_api.query import SearchAPIQuery

if Config.config.search_api:
from datagateway_api.src.search_api.filters import SearchAPIIncludeFilter
from datagateway_api.src.search_api.panosc_mappings import mappings
from datagateway_api.src.search_api.query import SearchAPIQuery


log = logging.getLogger()
Expand Down

0 comments on commit 7479cc3

Please sign in to comment.