Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't raise error

  • Loading branch information...
commit 63ba6596896398bfdbfb6f26d2d8c0a23253fd55 1 parent 746087d
Mike Krieger authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  greetings/views.py
View
3  greetings/views.py
@@ -48,7 +48,7 @@ def make_hash_list_from_objects(objects, field):
def all_cards_for_id(request, person_id, since_id=0):
json_list = list()
- for card in Card.objects.filter(to_people=person_id, pk__gt=since_id):
+ for card in Card.objects.filter(to_people=person_id, pk__gt=since_id).order_by("-id"):
json_list.append(json_from_card(card))
return HttpResponse( simplejson.dumps(json_list) )
@@ -226,7 +226,6 @@ def make_greeting(request):
json_response['error'] = "missing people ids"
except Exception, e:
- raise e
json_response['success'] = False
json_response['error'] = str(e)
return HttpResponse( simplejson.dumps(json_response) )
Please sign in to comment.
Something went wrong with that request. Please try again.