Example #1
0
 def get(self):
     """ List of Imports of Radio per date range"""
     limit = request.args.get('limit')
     radio_name = request.args.get('radio_name')
     start, end = validate_date_range()
     return tracks_import.TracksImport.get_imports_per_date_per_radio(
         start, end, radio_name, end_id=limit)
Example #2
0
    def get(self):
        """ Reviewed Tracks number per date range """
        start, end = validate_date_range()

        return {
            'result': track.Track.get_tracks_per_date_reviewed_num(start, end)
        }
Example #3
0
 def get(self):
     """ Exports per date range """
     limit = request.args.get('limit')
     start, end = validate_date_range()
     return se_db.TracksExport.get_exports_per_date(start,
                                                    end,
                                                    end_id=limit)
Example #4
0
    def get(self):
        """ Reviewed Tracks per date range """
        limit = request.args.get('limit')
        start, end = validate_date_range()

        return {
            'result':
            track.Track.get_tracks_per_date_reviewed(start, end, end_id=limit)
        }
Example #5
0
 def get(self):
     """ List of not reviewed Tracks of Radio per date range """
     limit = request.args.get('limit')
     radio_name = request.args.get('radio_name')
     start, end = validate_date_range()
     return track.Track.get_tracks_per_date_reviewed_not_per_radio(
         start_date=start,
         end_date=end,
         radio_name=radio_name,
         end_id=limit)
Example #6
0
 def get(self):
     """ Tracks per date range """
     limit = request.args.get('limit')
     start, end = validate_date_range()
     return track.Track.get_tracks_per_date(start, end, end_id=limit)
Example #7
0
 def get(self):
     """ Number of not reviewed Tracks of Radio per date range """
     radio_name = request.args.get('radio_name')
     start, end = validate_date_range()
     return track.Track.get_tracks_per_date_reviewed_not_num_per_radio(
         start_date=start, end_date=end, radio_name=radio_name)
Example #8
0
 def get(self):
     """ Imports number per date range """
     start, end = validators.validate_date_range()
     return tracks_import.TracksImport.get_imports_per_date_num(start, end)
Example #9
0
 def get(self):
     """ Imports per date range """
     limit = request.args.get('limit')
     start, end = validators.validate_date_range()
     return tracks_import.TracksImport.get_imports_per_date(start, end, end_id=limit)
Example #10
0
 def get(self):
     """ Number of Imports of Radio per date range"""
     radio_name = request.args.get('radio_name')
     start, end = validate_date_range()
     return tracks_import.TracksImport.get_imports_per_date_per_radio_num(
         start, end, radio_name)
Example #11
0
 def get(self):
     """ Exports number per date range """
     start, end = validate_date_range()
     return se_db.TracksExport.get_exports_per_date_num(start, end)