Changeset 982
- Timestamp:
- 11/14/08 16:16:48 (8 weeks ago)
- Location:
- huginmunin/trunk/web/hm/app
- Files:
-
- 1 added
- 2 modified
-
templates/admin/data_integrity.html (modified) (1 diff)
-
views/main.py (modified) (1 diff)
-
views/quickrate_urls.py (added)
Legend:
- Unmodified
- Added
- Removed
-
huginmunin/trunk/web/hm/app/templates/admin/data_integrity.html
r954 r982 8 8 </ul> 9 9 10 <ul> 11 <li>number of misfiled reviews with non-leaf interest: {{ num_misfiled_reviews }}</li> 12 </ul> 13 10 14 {% endblock %} -
huginmunin/trunk/web/hm/app/views/main.py
r980 r982 327 327 328 328 def check_data_integrity(request): 329 # check that the number of actions equals the number of actionable items 329 330 num_actionables = 0 330 331 for m in Action.ACTING_MODELS: 331 332 num_actionables += m.objects.count() 332 333 num_actions = Action.objects.count() 334 # check that no reviews have been filed under top level interests 335 parents = Dimension.objects.filter(parent=None) 336 num_misfiled_reviews = Behavior.objects.filter(dimension__in=parents) 333 337 return render_response(request, 'admin/data_integrity.html', locals()) 334 338