1. pi11
  2. xxxflash

Commits

pi11  committed ba14de8

mark fix

  • Participants
  • Parent commits 8d47504
  • Branches default

Comments (0)

Files changed (1)

File flash/views.py

View file
     comments = Comment.objects.filter(flash=g).order_by("id")
     try:
         m = Mark.objects.get(flash=g)
-        mark = m.mark
     except Mark.DoesNotExist:
         mark = "0"
     except Mark.MultipleObjectsReturned:
         Mark.objects.filter(flash=g).delete()
         mark = "0"
+    else:
+        mark = m.mark
 
     return locals()