diff options
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 48ff798..44e9a6e 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -117,7 +117,10 @@ def index(): clients = None if current_user.is_authenticated: clients = get_clients() - return render_template('dashboard.html', clients=clients) + images_response = g.server.get('/images') + images = images_response.json()['images'] + return render_template('dashboard.html', clients=clients, + images=images) return render_template('base.html') @app.route('/login', methods=['GET', 'POST']) |