def get_project_logo(name): """ get logo.png if available """ path = projects[name] logo = get_logo_file(path) if logo is None: abort(404) return logo
def get_project_logo(name): """ get logo.png if available """ path = projects[name] logo = get_logo_file(path) if logo is None: abort(404) return logo
def get_project_logo(name): """ get logo.png if available """ if("username" in session): YML_PATH = "./users/" + session["username"] projects = load_projects(YML_PATH) path = projects[name] logo = get_logo_file(path) if logo is None: abort(404) return logo else: abort(403)
def get_project_logo(name): """ get logo.png if available """ path = projects[name] return get_logo_file(path)
def get_project_logo(name): """ get logo.png if available """ path = projects[name] return get_logo_file(path)