Пример #1
0
    def std_header(self, report_name: str):
        start_date = self.start_date
        end_date = self.end_date
        std_header = header("%s report produced on %s from %s to %s" % (
            report_name,
            str(datetime.datetime.now()),
            str(start_date),
            str(end_date),
        ))

        return std_header
Пример #2
0
    def std_header(self, report_name: str):
        start_date = self.start_date
        end_date = self.end_date
        std_header = header(
            "%s report produced on %s from %s to %s" %
            (report_name,
             datetime.datetime.now().strftime(REPORT_DATETIME_FORMAT),
             start_date.strftime(REPORT_DATETIME_FORMAT),
             end_date.strftime(REPORT_DATETIME_FORMAT)))

        return std_header
Пример #3
0
 def footer(self):
     return header("END OF REPORT")
Пример #4
0
    def terse_header(self, report_name: str):
        terse_header = header("%s report produced on %s" %
                              (report_name, str(datetime.datetime.now())))

        return terse_header