added cal project
This commit is contained in:
@@ -2,10 +2,10 @@ import calendar
|
||||
from datetime import datetime
|
||||
from pprint import pprint
|
||||
|
||||
# import pytz
|
||||
from dmweb.dm import dmbp
|
||||
from flask import Blueprint, render_template
|
||||
|
||||
# import pytz
|
||||
from .dm import dmbp
|
||||
from .get_period_times import (
|
||||
get_period_totals,
|
||||
read_and_extract,
|
||||
@@ -77,6 +77,8 @@ class DMHTMLCalendar(calendar.HTMLCalendar):
|
||||
|
||||
rows = get_period_totals(start, end, self.task)
|
||||
|
||||
print(rows)
|
||||
|
||||
returnstr = "<table class='totaltable'>"
|
||||
for row in rows:
|
||||
returnstr += "<tr><td>{}</td><td>{}</td></tr>".format(
|
||||
|
||||
Reference in New Issue
Block a user