Skip to content
Snippets Groups Projects
Commit 8fcd7ed9 authored by Brian Wood's avatar Brian Wood
Browse files

Updated loan controller

parent bc3b28ac
Branches
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ from flask.ext.wtf import Form, TextField, validators ...@@ -8,7 +8,7 @@ from flask.ext.wtf import Form, TextField, validators
def loaned(user=None): def loaned(user=None):
from project.model.Movie import Movie from project.model.Movie import Movie
from project.model.Library import Library from project.model.Library import Library
library = Library.objects(user=user,name="Borrowed",unit='Movie').first() library = Library.objects(user=user,name="Loaned",unit='Movie').first()
if not library: if not library:
return render_template('404.html',message='Unable to find given Library',user=user),404 return render_template('404.html',message='Unable to find given Library',user=user),404
return render_template('library/library.html',library=library,user=user) return render_template('library/library.html',library=library,user=user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment