Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
4ff7eab6
Commit
4ff7eab6
authored
Nov 08, 2019
by
LE GAC Renaud
Browse files
Polish 2to3 translation.
parent
e8648d92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/invenio_tools/base.py
modules/invenio_tools/base.py
+1
-1
modules/invenio_tools/iterrecord.py
modules/invenio_tools/iterrecord.py
+2
-2
No files found.
modules/invenio_tools/base.py
View file @
4ff7eab6
...
...
@@ -76,7 +76,7 @@ def is_institute(record):
if
isinstance
(
record
[
"980"
],
list
):
for
di
in
record
[
"980"
]:
for
k
,
v
in
list
(
di
.
items
()
)
:
for
k
,
v
in
di
.
items
():
if
k
==
"a"
and
v
==
"INSTITUTION"
:
return
True
...
...
modules/invenio_tools/iterrecord.py
View file @
4ff7eab6
...
...
@@ -115,7 +115,7 @@ class IterRecord(object):
if
len
(
keys
)
==
len
(
set
(
keys
)):
di
=
record
[
field
][
0
]
for
i
in
range
(
1
,
len
(
record
[
field
])):
for
k
,
v
in
list
(
record
[
field
][
i
].
items
()
)
:
for
k
,
v
in
record
[
field
][
i
].
items
():
di
[
k
]
=
v
record
[
field
]
=
di
...
...
@@ -154,7 +154,7 @@ class IterRecord(object):
if
i
==
index
:
continue
for
k
,
v
in
list
(
record
[
field
][
i
].
items
()
)
:
for
k
,
v
in
record
[
field
][
i
].
items
():
di
[
k
]
=
v
record
[
field
]
=
di
...
...
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