feedback/utils.py
changeset 44 7d748db0c7c3
parent 42 0f926874a695
child 62 b7e47cc39342
equal deleted inserted replaced
43:757d1da69255 44:7d748db0c7c3
    68     """ take a list of feedback objects and return the percentage of each item in the form of a dict.
    68     """ take a list of feedback objects and return the percentage of each item in the form of a dict.
    69     """
    69     """
    70 
    70 
    71     no_of_feeds = feeds.count()
    71     no_of_feeds = feeds.count()
    72     if not no_of_feeds:
    72     if not no_of_feeds:
    73         return {}
    73         return []
    74 
    74 
    75     day_report = []
    75     day_report = []
    76 
    76 
    77     for field in ['topics', 'depth', 'methodology', 'pace', 'applicability', 'problems', 'exercises']:
    77     for field in ['topics', 'depth', 'methodology', 'pace', 'applicability', 'problems', 'exercises']:
    78         
    78