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
e066385b
Commit
e066385b
authored
Nov 20, 2015
by
David Read
Browse files
Merge commit '
9a70e1a2
' into fix-travis
parents
95471a06
9a70e1a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/bin/migrate_task_status.py
View file @
e066385b
...
...
@@ -118,7 +118,13 @@ def migrate(options):
def
add_stat
(
outcome
,
res
,
stats
,
extra_info
=
None
):
res_id
=
'%s %s'
%
(
res
.
resource_group
.
package
.
name
,
res
.
id
[:
4
])
try
:
# pre CKAN 2.3 model
package_name
=
res
.
resource_group
.
package
.
name
except
AttributeError
:
# CKAN 2.3+ model
package_name
=
res
.
package
.
name
res_id
=
'%s %s'
%
(
package_name
,
res
.
id
[:
4
])
if
extra_info
:
res_id
+=
' %s'
%
extra_info
return
'
\n
'
+
stats
.
add
(
outcome
,
res_id
)
...
...
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