Commit b007b952 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Merge branch 'master' of gitlab.switch.ch:memoriav/memobase-2020/services/import-process/import-api

parents 5a1668b3 dacb1b55
......@@ -40,6 +40,7 @@ def create_app(test_config=None):
app.config['drupal-password'] = os.environ['DRUPAL_PASSWORD']
app.config['drupal-api-url'] = os.environ['DRUPAL_API_URL']
app.config['drupal-api-key'] = os.environ['DRUPAL_API_KEY']
app.config['clear-cache-url'] = os.environ['CLEAR_CACHE_URL']
app.config['topic-configs'] = os.environ['TOPIC_CONFIGS']
app.config['topic-drupal-export'] = os.environ['TOPIC_DRUPAL_EXPORT']
app.config['sftp_host'] = os.environ['SFTP_HOST']
......
......@@ -18,7 +18,7 @@ class ClearCache(Resource):
description: Failure tha call to drupal could neo be executed
"""
uri = current_app.config['drupal-api-url'] + current_app.config['CLEAR_CACHE_URL']
uri = current_app.config['drupal-api-url'] + current_app.config['clear-cache-url']
headers = {'X-API-Key': current_app.config['drupal-api-key']}
try:
response = requests.get(uri, headers=headers)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment