Skip to content
Snippets Groups Projects
Commit e94c5e2d authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Fix for RowProxy object does not support item assignment

parent fb3641ec
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!51Fixes for hivemind exceptions
......@@ -230,15 +230,11 @@ def _condenser_post_object(row, truncate_body=0):
"""Given a hive_posts row, create a legacy-style post object."""
paid = row['is_paidout']
# condenser#3424 mitigation
if not row['category']:
row['category'] = 'undefined'
post = {}
post['post_id'] = row['id']
post['author'] = row['author']
post['permlink'] = row['permlink']
post['category'] = row['category']
post['category'] = row.get('category', 'undefined')
post['title'] = row['title']
post['body'] = row['body'][0:truncate_body] if truncate_body else row['body']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment