Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
b9a7300a
Commit
b9a7300a
authored
May 07, 2019
by
Okhin
Browse files
FIxing the import script
parent
e4e93a34
Pipeline
#2585
passed with stages
in 3 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/core/management/commands/import_old_rp.py
View file @
b9a7300a
...
...
@@ -73,10 +73,7 @@ class Command(BaseCommand):
article
.
website
=
website
.
group
(
1
)
# Raise the score if needed
if
item
[
'note'
]
>
0
:
article
.
und_score_up
=
item
[
'note'
]
if
item
[
'note'
]
<
0
:
article
.
und_score_down
=
abs
(
item
[
'note'
])
article
.
score
=
item
[
'note'
]
article
.
save
()
article
.
refresh_from_db
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment