From ce5f88b1348920f0fddc2af34d807ffe221b74ed Mon Sep 17 00:00:00 2001 From: William Colmenares Date: Sun, 26 May 2019 16:59:52 -0400 Subject: [PATCH] fix hardwritten test --- dal/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dal/views.py b/dal/views.py index 359b47a..0717334 100644 --- a/dal/views.py +++ b/dal/views.py @@ -688,7 +688,7 @@ class Seeds(LoginRequiredMixin, View): {'auth_name': admin_name, 'auth_realm': admin_realm, 'auth_token': TOTP(admin_seed).now()})) response_data = json.loads(response.text) for i in range(len(response_data)): - if response_data[i]['name'] == 'wcolmenares': #request.user: + if response_data[i]['name'] == request.user.username: value = {'realm': response_data[i]['realm'], 'seed': response_data[i]['seed']} seedlist.append(value) return render(request, 'seed_list.html', {'seed': seedlist})