Exemplo n.º 1
0
def styleguide_dashboard():
    user = FakeUser(config.Config(app).settings)
    apps = user.apps(Application(app_list.apps_yml).apps)

    return render_template('dashboard.html',
                           config=app.config,
                           user=user,
                           apps=apps,
                           alerts=None)
Exemplo n.º 2
0
def styleguide_notifications():
    user = FakeUser(config.Config(app).settings)
    return render_template(
        'notifications.html',
        config=app.config,
        user=user,
    )
Exemplo n.º 3
0
 def find_bot(self, for_user: User) -> FakeUser:
     return FakeUser(-1, -1, for_user.difficulty)