Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MyMovieLibrary
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
MyMovieLibrary
Commits
8fcd7ed9
Commit
8fcd7ed9
authored
11 years ago
by
Brian Wood
Browse files
Options
Downloads
Patches
Plain Diff
Updated loan controller
parent
bc3b28ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
project/controllers/loan.py
+1
-1
1 addition, 1 deletion
project/controllers/loan.py
with
1 addition
and
1 deletion
project/controllers/loan.py
+
1
−
1
View file @
8fcd7ed9
...
...
@@ -8,7 +8,7 @@ from flask.ext.wtf import Form, TextField, validators
def
loaned
(
user
=
None
):
from
project.model.Movie
import
Movie
from
project.model.Library
import
Library
library
=
Library
.
objects
(
user
=
user
,
name
=
"
Borrow
ed
"
,
unit
=
'
Movie
'
).
first
()
library
=
Library
.
objects
(
user
=
user
,
name
=
"
Loan
ed
"
,
unit
=
'
Movie
'
).
first
()
if
not
library
:
return
render_template
(
'
404.html
'
,
message
=
'
Unable to find given Library
'
,
user
=
user
),
404
return
render_template
(
'
library/library.html
'
,
library
=
library
,
user
=
user
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment