Example #1
0
 def getAllTrendingRes_Between(self):
     dao = statistic_ResourceDAO()
     res = dao.getAllTrendingResBetween()
     result_list = []
     for row in res:
         result = self.build_Region_Amount_Compare(row)
         result_list.append(result)
     return jsonify(Resource_Compare=result_list)
Example #2
0
 def getAllDailyRes_AvailableBySenate(self):
     dao = statistic_ResourceDAO()
     res = dao.getAllTrendingResAvailableBySenate()
     result_list = []
     for row in res:
         result = self.build_Region_Amount(row)
         result_list.append(result)
     return jsonify(Resource_Available=result_list)
Example #3
0
 def getAllTrendingRes_InNeed(self):
     dao = statistic_ResourceDAO()
     res = dao.getAllTrendingResInNeed()
     result_list = []
     for row in res:
         result = self.build_Region_Amount(row)
         result_list.append(result)
     return jsonify(Resource_Requested=result_list)