diff --git a/lib/adapter/question.py b/lib/adapter/question.py index 8153a4c9..90bde5bb 100644 --- a/lib/adapter/question.py +++ b/lib/adapter/question.py @@ -51,7 +51,7 @@ class Question(UpstreamAdapter): """ _adapter_name = "question" - _output_format = "text+code" + _output_format = CONFIG["adapter.question.output_format"] _cache_needed = True def _get_page(self, topic, request_options=None): diff --git a/lib/config.py b/lib/config.py index fbb11824..0e63dfad 100644 --- a/lib/config.py +++ b/lib/config.py @@ -100,6 +100,7 @@ def _config_locations(): "adapters.mandatory": [ "search", ], + "adapter.question.output_format": "text+code", "cache.redis.db": 0, "cache.redis.host": "localhost", "cache.redis.port": 6379,