Skip to content

Commit

Permalink
[store][xs]: allow setting of account_id from annotation if not in he…
Browse files Browse the repository at this point in the history
…aders.
  • Loading branch information
rgrp committed Mar 19, 2011
1 parent b87b450 commit 9699f80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion annotator/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def index():
def create_annotation():
if request.json:
annotation = Annotation.from_dict(request.json)
annotation.account_id = g.account_id
if g.account_id:
annotation.account_id = g.account_id
annotation.save()
return jsonify(annotation.to_dict())
else:
Expand Down

0 comments on commit 9699f80

Please sign in to comment.