Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joel Vinay Kumar
flask-book-shoppe
Commits
f9c55247
Commit
f9c55247
authored
Mar 29, 2018
by
Joel
Browse files
Logout and Clear Cart features added
parent
32632ac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
book_shoppe.py
View file @
f9c55247
...
...
@@ -142,10 +142,7 @@ def login():
@
app
.
route
(
'/cart'
,
methods
=
[
'GET'
,
'POST'
])
def
cart
():
# lst = CurrentCart.query.filter_by(label=price).all()
# total=0
# for t in lst:
# total=total+t
# book = str(data['items'][id]["volumeInfo"]["authors"][0])
return
render_template
(
'cart.html'
,
size
=
len
(
data
[
'items'
]),
data
=
data
,
items
=
CurrentCart
.
query
.
all
())
@
app
.
route
(
'/clear_cart'
,
methods
=
[
'GET'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment