Changeset 982

Show
Ignore:
Timestamp:
11/14/08 16:16:48 (8 weeks ago)
Author:
lucy
Message:

oops

Location:
huginmunin/trunk/web/hm/app
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • huginmunin/trunk/web/hm/app/templates/admin/data_integrity.html

    r954 r982  
    88</ul> 
    99 
     10<ul> 
     11<li>number of misfiled reviews with non-leaf interest: {{ num_misfiled_reviews }}</li> 
     12</ul> 
     13 
    1014{% endblock %} 
  • huginmunin/trunk/web/hm/app/views/main.py

    r980 r982  
    327327 
    328328def check_data_integrity(request): 
     329    # check that the number of actions equals the number of actionable items 
    329330    num_actionables = 0 
    330331    for m in Action.ACTING_MODELS: 
    331332        num_actionables += m.objects.count() 
    332333    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) 
    333337    return render_response(request, 'admin/data_integrity.html', locals()) 
    334338