Commit b2229054 authored by okhin's avatar okhin 🚴

Fixing the add_from_url tags creation

parent f6491a65
Pipeline #2591 passed with stages
in 3 minutes and 5 seconds
......@@ -195,7 +195,7 @@ class Article(models.Model):
# Let's add the tags
if tags:
article.tags.add(','.join([t for t in tags if len(t) > 0]))
article.tags.add(','.join([t['name'] for t in tags if len(t) > 0]))
try:
r = requests.get(url, timeout=0.5)
article.original_status = r.status_code
......
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