Commit b9a7300a authored by okhin's avatar okhin 🚴

FIxing the import script

parent e4e93a34
Pipeline #2585 passed with stages
in 3 minutes and 2 seconds
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment