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