#NEWLINE# def get_data( self ) : #NEWLINE# #INDENT# startdate = self . config [ 'startdate' ] #NEWLINE# enddate = self . config [ 'enddate' ] #NEWLINE# datespan = DateSpan ( startdate , enddate ) #NEWLINE# location_id = self . config [ 'location_id' ] #NEWLINE# domain = location_id . config [ 'domain' ] #NEWLINE# report_data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for report in self . get_reports ( ) : #NEWLINE# #INDENT# report_data [ report . slug ] = { #NEWLINE# #INDENT# 'name' : report . name , #NEWLINE# 'data' : report . get_report_data ( { #NEWLINE# #INDENT# 'location_id' : location_id , #NEWLINE# 'datespan' : datespan , #NEWLINE# 'domain' : domain , #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return report_data