Skip to content

Commit

Permalink
Hardcode the site url
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed May 21, 2024
1 parent 352d29d commit 8df116f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckanext/archiver/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ def _save(status_id, exception, resource, url_redirected_to=None,
url = resource['url']
if not url.startswith('http'):
url = config['ckan.site_url'].rstrip('/') + url

if resource.get('url_type') == 'upload':
upload = uploader.get_resource_uploader(resource)
filepath = upload.get_bucket_path(resource['id'])
Expand Down Expand Up @@ -305,7 +304,7 @@ def _save(status_id, exception, resource, url_redirected_to=None,
download_result = None
download_status_id = Status.by_text('Archived successfully')
context = {
'site_url': config.get('ckan.site_url_internally') or config['ckan.site_url'],
'site_url': 'localhost:5000',
'cache_url_root': config.get('ckanext-archiver.cache_url_root'),
'previous': Archival.get_for_resource(resource_id)
}
Expand Down

0 comments on commit 8df116f

Please sign in to comment.