Django app to analyse and aggregate OOPS reports

Comment 1 for bug 608914

Robert Collins (lifeless) wrote :

This might do it - I can't seem to do the buildout dance properly for this (arrrrrgh) but fingers crossed, it will work - or be close.

=== modified file 'src/oopstools/oops/dbsummaries.py'
--- src/oopstools/oops/dbsummaries.py 2010-07-14 08:45:31 +0000
+++ src/oopstools/oops/dbsummaries.py 2010-07-23 10:45:21 +0000
@@ -211,6 +211,8 @@
             count, bot_count, local_referrer_count, url_count)
         self.errors = errors.filter(
             most_expensive_statement__exact=most_expensive_statement)
+ if len(self.errors):
+ self.bug = self.errors[0].oopsinfestation.bug
         self.etype = most_expensive_statement
         self.evalue = '' # XXX None