def ajax_new_user_profile(): uid = request.args.get('uid', '') results = new_get_user_profile(uid) if not results: result = {} return json.dumps(results)