Skip to content
Snippets Groups Projects
Commit c72e0f9c authored by Jan Mach's avatar Jan Mach
Browse files

Changed default Hawat config values for HAWAT_LIMIT_AODS and HAWAT_SEARCH_QUERY_QUOTA.

parent afde506f
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,12 @@ BABEL_DEFAULT_TIMEZONE = 'UTC' ...@@ -25,6 +25,12 @@ BABEL_DEFAULT_TIMEZONE = 'UTC'
#BABEL_DEFAULT_LOCALE = 'cs' #BABEL_DEFAULT_LOCALE = 'cs'
#BABEL_DEFAULT_TIMEZONE = 'Europe/Prague' #BABEL_DEFAULT_TIMEZONE = 'Europe/Prague'
# Limit for number of objects for which to automatically fetch additional data services.
HAWAT_LIMIT_AODS = 20
# Event database search query quota.
HAWAT_SEARCH_QUERY_QUOTA = 7
# List of enabled application blueprints. # List of enabled application blueprints.
ENABLED_BLUEPRINTS = [ ENABLED_BLUEPRINTS = [
'vial.blueprints.auth', 'vial.blueprints.auth',
......
...@@ -298,7 +298,6 @@ class PsycopgMixin: ...@@ -298,7 +298,6 @@ class PsycopgMixin:
backend through SQLAlchemy library. backend through SQLAlchemy library.
""" """
SEARCH_QUERY_QUOTA_CHECK = True SEARCH_QUERY_QUOTA_CHECK = True
SEARCH_QUERY_QUOTA = 5
def fetch(self, item_id): # pylint: disable=locally-disabled,no-self-use def fetch(self, item_id): # pylint: disable=locally-disabled,no-self-use
""" """
......
...@@ -179,10 +179,10 @@ class Config(vial.config.Config): # pylint: disable=locally-disabled,too-few-pu ...@@ -179,10 +179,10 @@ class Config(vial.config.Config): # pylint: disable=locally-disabled,too-few-pu
HAWAT_CHART_TIMELINE_MAXSTEPS = 200 HAWAT_CHART_TIMELINE_MAXSTEPS = 200
"""Maximal number of steps (bars) displayed in timeline chart.""" """Maximal number of steps (bars) displayed in timeline chart."""
HAWAT_LIMIT_AODS = 10 HAWAT_LIMIT_AODS = 20
"""Limit for number of objects for which to automatically fetch additional data services.""" """Limit for number of objects for which to automatically fetch additional data services."""
HAWAT_SEARCH_QUERY_QUOTA = 3 HAWAT_SEARCH_QUERY_QUOTA = 7
"""Event search query quota per each user.""" """Event search query quota per each user."""
SQLALCHEMY_SETUP_ARGS = { SQLALCHEMY_SETUP_ARGS = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment