From ab9e6813935c4f4b8194a112e79ae7cb4e714f27 2016-06-15 12:21:01 From: Marcin Lulek Date: 2016-06-15 12:21:01 Subject: [PATCH] index: remove unused variables --- diff --git a/backend/src/appenlight/views/index.py b/backend/src/appenlight/views/index.py index b0e1da9..57c68e7 100644 --- a/backend/src/appenlight/views/index.py +++ b/backend/src/appenlight/views/index.py @@ -239,17 +239,4 @@ def app_main_index(request): - latest events (those last two come from subscribers.py that sets global renderer variables) """ - - if request.user: - request.user.last_login_date = datetime.datetime.utcnow() - applications = request.user.resources_with_perms( - ['view'], resource_types=['application']) - # convert for angular - applications = dict( - [(a.resource_id, a.resource_name) for a in applications.all()] - ) - else: - applications = {} - return { - 'applications': applications - } + return {}