Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simple OPDS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Simple OPDS
Commits
7d421a76
Commit
7d421a76
authored
Mar 1, 2017
by
Dmitry Shelepnev
Browse files
Options
Downloads
Patches
Plain Diff
Fix error in sopdscan.py (split authors and change position for last and first names)
parent
ecf08130
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
opds_catalog/sopdscan.py
+1
-1
1 addition, 1 deletion
opds_catalog/sopdscan.py
with
1 addition
and
1 deletion
opds_catalog/sopdscan.py
+
1
−
1
View file @
7d421a76
...
@@ -231,7 +231,7 @@ class opdsScanner:
...
@@ -231,7 +231,7 @@ class opdsScanner:
for
a
in
book_data
.
authors
:
for
a
in
book_data
.
authors
:
author_name
=
a
.
get
(
'
name
'
,
_
(
'
Unknown author
'
)).
strip
(
strip_symbols
)
author_name
=
a
.
get
(
'
name
'
,
_
(
'
Unknown author
'
)).
strip
(
strip_symbols
)
# Если в имени автора нет запятой, то фамилию переносим из конца в начало
# Если в имени автора нет запятой, то фамилию переносим из конца в начало
if
author_name
.
find
(
'
,
'
)
<
0
:
if
author_name
and
author_name
.
find
(
'
,
'
)
<
0
:
author_names
=
author_name
.
split
()
author_names
=
author_name
.
split
()
author_name
=
'
'
.
join
([
author_names
[
-
1
],
'
'
.
join
(
author_names
[:
-
1
])])
author_name
=
'
'
.
join
([
author_names
[
-
1
],
'
'
.
join
(
author_names
[:
-
1
])])
author
=
opdsdb
.
addauthor
(
author_name
)
author
=
opdsdb
.
addauthor
(
author_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment