def dashboard(): # Build in logic to check to see if a user has had a password reset. If so, # prompt them to change their password. try: urls = core.lookup_urls(session['id']) return render_template('dashboard.html', urls=urls, username=session['username']) except KeyError: return redirect('/')
def test_check_lookup_urls(): '''user that has urls''' uid = 1 result = core.lookup_urls(uid) tools.assert_equals(result['http://mercedescoyle.com'].url_id, 1 )