def build_comment_model_from_fb_comment(json_comment): comment = Comment(user_fb_id=json_comment["from"]["id"], created_at=Utils.parse_utf_format_datetime(json_comment["created_time"]), text=json_comment["message"]) choosie_user = CacheController.get_user_by_fb_id(json_comment["from"]["id"]) if choosie_user is None: comment.is_scraped = True comment.scraped_user_details = str(ScrapeCommentsHandler.build_user_details(json_comment)) return comment