SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
8a7b2a8b
Commit
8a7b2a8b
authored
1 year ago
by
George Katsikas
Browse files
Options
Downloads
Patches
Plain Diff
fix publication metadata crash on first fetch
parent
55365261
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scipost_django/journals/models/publication.py
+2
-0
2 additions, 0 deletions
scipost_django/journals/models/publication.py
with
2 additions
and
0 deletions
scipost_django/journals/models/publication.py
+
2
−
0
View file @
8a7b2a8b
...
@@ -308,6 +308,8 @@ class Publication(models.Model):
...
@@ -308,6 +308,8 @@ class Publication(models.Model):
for
entry
in
indexed_author_list
:
for
entry
in
indexed_author_list
:
padded_entry
=
entry
+
[
None
]
*
(
max_length
-
len
(
entry
))
padded_entry
=
entry
+
[
None
]
*
(
max_length
-
len
(
entry
))
padded_list
.
append
(
padded_entry
)
padded_list
.
append
(
padded_entry
)
else
:
padded_list
=
[]
# Save into the calculated field for future purposes.
# Save into the calculated field for future purposes.
Publication
.
objects
.
filter
(
id
=
self
.
id
).
update
(
Publication
.
objects
.
filter
(
id
=
self
.
id
).
update
(
cf_author_affiliation_indices_list
=
padded_list
cf_author_affiliation_indices_list
=
padded_list
...
...
This diff is collapsed.
Click to expand it.
George Katsikas
@gkatsikas
mentioned in commit
fbf7b503
·
10 months ago
mentioned in commit
fbf7b503
mentioned in commit fbf7b5039bd41a454bd3793c3f0c2d05c4da130b
Toggle commit list
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