

def get_static_view(folder, flaskadminapp):
    folder = resole_uri(folder)

    def send_static_file(filename):
        cache_timeout = flaskadminapp.get_send_file_max_age(filename)
        return send_from_directory(folder, filename, cache_timeout=cache_timeout)
    return send_static_file

dataset/ETHPy150Open ActiDoo/gamification-engine/gengine/flaskadmin.py get_static_view/original