def list(request):

    objects = []
    notifications = Notification.objects.filter(recipient=request.user).order_by("-date")

    for i in xrange(10):
        objects.append({
            "sentence": render_to_string(
                notifications[i].type.label % "notifications/%s/sentence.html", {
                    "notification": notifications[i]}),
            "date": notifications[i].date
        })
    notifications.update(seen=True)
    notifications[10:].delete()
    return render_to_response("notifications/list.html",
            {"objects": objects})
dataset/ETHPy150Open linkfloyd/linkfloyd/linkfloyd/notifications/views.py/list/swapped operands of `%`