Skip to content

Commit

Permalink
Fixed a bug where no query is specified in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Jun 23, 2012
1 parent 5d91f85 commit 83b97db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nofussbm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get( bid = None ):
if not m or limit < 0: abort( 416 )

args = parse_qs( request.headers[ 'X-Nofussbm-Query' ] ) if 'X-Nofussbm-Query' in request.headers else None
query = query_from_dict( g.email, dict( ( k, args[ k ][ 0 ] ) for k in args.keys() ) )
query = query_from_dict( g.email, dict( ( k, args[ k ][ 0 ] ) for k in args.keys() ) if args else None )

try:
cur = g.db.bookmarks.find( query, skip = skip, limit = limit )
Expand Down

0 comments on commit 83b97db

Please sign in to comment.