sdi/views.py
branchanoop
changeset 80 c200156c80a9
parent 79 064ff60025d9
child 84 7007ec492eac
equal deleted inserted replaced
79:064ff60025d9 80:c200156c80a9
    78                 db_query += '.filter(likeliness_of_attending__gte="%s")'%start_likeliness
    78                 db_query += '.filter(likeliness_of_attending__gte="%s")'%start_likeliness
    79                 db_query += '.filter(likeliness_of_attending__lte="%s")'%stop_likeliness
    79                 db_query += '.filter(likeliness_of_attending__lte="%s")'%stop_likeliness
    80             elif start_likeliness:
    80             elif start_likeliness:
    81                 db_query += '.filter(likeliness_of_attending__exact="%s")'%start_likeliness
    81                 db_query += '.filter(likeliness_of_attending__exact="%s")'%start_likeliness
    82 
    82 
       
    83             db_query += ".all()"
       
    84 
    83             matches = eval(db_query)
    85             matches = eval(db_query)
    84             return render_to_response("list_stats.html", {"form":form, 'matches':matches})
    86             return render_to_response("list_stats.html", {"form":form, 'matches':matches})
    85         else:
    87         else:
    86             return render_to_response("list_stats.html", {"form":form})
    88             return render_to_response("list_stats.html", {"form":form})
    87     else:
    89     else: