def get_target(content_id): """ get the last social shares from database """ data = SocialShare.get_last_social_shares_by_content_id(content_id) if not data: return return data.facebook_shares + data.retweets + data.upvotes