Skip to content

Commit

Permalink
Fix for last_bmark not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
mitechie committed Aug 15, 2011
1 parent 534afc6 commit 540b723
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bookie/views/api.py
Expand Up @@ -49,12 +49,11 @@ def bmark_get(request):
bookmark = BmarkMgr.get_by_hash(hash_id,
username=username)

last_bmark = {}
if 'last_bmark' in request.params:
last = BmarkMgr.get_recent_bmark(username=username)
if last is not None:
last_bmark = {'last': dict(last)}
else:
last_bmark = {}

if bookmark is None:
request.response.status_int = 404
Expand Down

0 comments on commit 540b723

Please sign in to comment.