]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/sitemap.py
Fixes a bug happening when processing an user reputation more than once in the same...
[osqa.git] / forum / sitemap.py
index c0c60b5eaef33294cabb1e6954b76f0aed398dd2..3606cab1147dffeac8eb51378a94fba1cc0c967c 100644 (file)
@@ -5,7 +5,7 @@ class QuestionsSitemap(Sitemap):
     changefreq = 'daily'
     priority = 0.5
     def items(self):
-        return Question.objects.exclude(deleted=True)
+        return Question.objects.filter_state(deleted=False)
 
     def lastmod(self, obj):
         return obj.last_activity_at