import datetime from pprint import pprint from flask import Blueprint, render_template import pytz import calendar from dmweb.dm import dmbp, get_period_totals, local_date class DMHTMLCalendar(calendar.HTMLCalendar): # def formatmonth(self, theyear, themonth, withyear=True): # self.dmmonth = themonth # super().formatmonth(self, theyear, themonth) def setcalmonth(self, month): self.dmmonth = month def oneday(self,month,day): start = datetime.datetime(2020, month, day).replace(hour=0, minute=0, second=0) end = datetime.datetime(2020, month, day).replace (hour=23, minute=59, second=59) rows = get_period_totals( local_date(start), local_date(end)) returnstr = "
| {} | {} |