Do not use pylons

This commit is contained in:
Sergey Motornyuk 2020-01-15 09:48:16 +02:00
parent 1b6e26f5ce
commit 83f40f6a0f
1 changed files with 2 additions and 3 deletions

View File

@ -20,8 +20,7 @@ import ckan.plugins.toolkit as tk
from ckan.exceptions import CkanVersionException
import ckanext.googleanalytics.commands as commands
DEFAULT_RESOURCE_URL_TAG = "/downloads/"
log = logging.getLogger(__name__)
@ -101,7 +100,7 @@ class GoogleAnalyticsPlugin(GAMixinPlugin, p.SingletonPlugin):
if "googleanalytics_resource_prefix" not in config:
config[
"googleanalytics_resource_prefix"
] = commands.DEFAULT_RESOURCE_URL_TAG
] = DEFAULT_RESOURCE_URL_TAG
self.googleanalytics_resource_prefix = config[
"googleanalytics_resource_prefix"
]