Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
70705eff
Commit
70705eff
authored
Oct 03, 2018
by
Marko Kuder
Browse files
fixed bug with non-working notifications
parent
dcabbfdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/lib.py
View file @
70705eff
...
...
@@ -8,7 +8,7 @@ from ckan.lib.celery_app import celery
log
=
logging
.
getLogger
(
__name__
)
def
create_archiver_resource_task
(
resource
,
queue
,
force
):
def
create_archiver_resource_task
(
resource
,
queue
,
force
=
False
):
from
pylons
import
config
if
p
.
toolkit
.
check_ckan_version
(
max_version
=
'2.2.99'
):
# earlier CKANs had ResourceGroup
...
...
@@ -24,7 +24,7 @@ def create_archiver_resource_task(resource, queue, force):
queue
,
package
.
name
,
resource
.
id
,
resource
.
url
)
def
create_archiver_package_task
(
package
,
queue
,
force
):
def
create_archiver_package_task
(
package
,
queue
,
force
=
False
):
from
pylons
import
config
task_id
=
'%s/%s'
%
(
package
.
name
,
make_uuid
()[:
4
])
ckan_ini_filepath
=
os
.
path
.
abspath
(
config
[
'__file__'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment