fix hardwritten test

This commit is contained in:
wcolmenares 2019-05-26 16:59:52 -04:00
parent 36d10deaab
commit ce5f88b134

View file

@ -688,7 +688,7 @@ class Seeds(LoginRequiredMixin, View):
{'auth_name': admin_name, 'auth_realm': admin_realm, 'auth_token': TOTP(admin_seed).now()})) {'auth_name': admin_name, 'auth_realm': admin_realm, 'auth_token': TOTP(admin_seed).now()}))
response_data = json.loads(response.text) response_data = json.loads(response.text)
for i in range(len(response_data)): 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']} value = {'realm': response_data[i]['realm'], 'seed': response_data[i]['seed']}
seedlist.append(value) seedlist.append(value)
return render(request, 'seed_list.html', {'seed': seedlist}) return render(request, 'seed_list.html', {'seed': seedlist})