engine/process.py
def create(self, call):
        """Call the listed below methods for a survey.
           Insert the results into the HTML/CSS/JavaScript template, containing
           the Leaflet map. Produce a file-like object, assign the proper name and extension,
           return it."""
        survey = f"'{self.get_survey(call)}'"

        pp_extent = self.geom_extent(survey)
        adjust = self.adjust(survey, pp_extent['point'], pp_extent['polygon'])
        distance = self.distance(adjust)
        pp_source = self.source(survey)

        modified = map_template.html_2 % (call.from_user.first_name, str(pp_source['point']), str(pp_source['polygon']),
                                          adjust['center_lat'], adjust['center_long'], self.get_scale(distance))

        output = io.BytesIO(str.encode(map_template.html_1 + modified + map_template.html_3, 'utf-8'))
        output.name = f'{call.from_user.first_name}.html'

        return output
Call the listed below methods for a survey.
           Insert the results into the HTML/CSS/JavaScript template, containing
           the Leaflet map. Produce a file-like object, assign the proper name and extension,
           return it.
Call the listed below methods for a survey.
Insert the results into the HTML/CSS/JavaScript template, containing
the Leaflet map. Produce a file-like object, assign the proper name and extension,
return it.
Call the listed below methods for a survey . Insert the results into the HTML / CSS / JavaScript template containing the Leaflet map . Produce a file - like object assign the proper name and extension return it .
def create(self, call):
        survey = f"'{self.get_survey(call)}'"
        pp_extent = self.geom_extent(survey)
        adjust = self.adjust(survey, pp_extent['point'], pp_extent['polygon'])
        distance = self.distance(adjust)
        pp_source = self.source(survey)
        modified = map_template.html_2 % (call.from_user.first_name, str(pp_source['point']), str(pp_source['polygon']),
                                          adjust['center_lat'], adjust['center_long'], self.get_scale(distance))
        output = io.BytesIO(str.encode(map_template.html_1 + modified + map_template.html_3, 'utf-8'))
        output.name = f'{call.from_user.first_name}.html'
        return output
def create ( self , call ) : survey = f"'{self.get_survey(call)}'" pp_extent = self . geom_extent ( survey ) adjust = self . adjust ( survey , pp_extent [ 'point' ] , pp_extent [ 'polygon' ] ) distance = self . distance ( adjust ) pp_source = self . source ( survey ) modified = map_template . html_2 % ( call . from_user . first_name , str ( pp_source [ 'point' ] ) , str ( pp_source [ 'polygon' ] ) , adjust [ 'center_lat' ] , adjust [ 'center_long' ] , self . get_scale ( distance ) ) output = io . BytesIO ( str . encode ( map_template . html_1 + modified + map_template . html_3 , 'utf-8' ) ) output . name = f'{call.from_user.first_name}.html' return output
Call the listed below methods for a survey.
Call the listed below methods for a survey .
"""Call the listed below methods for a survey.
           Insert the results into the HTML/CSS/JavaScript template, containing
           the Leaflet map. Produce a file-like object, assign the proper name and extension,
           return it."""
self
call