add 5-second auto-refresh to all views except work and workmonth

Implements conditional auto-refresh using meta http-equiv tags in templates.
Views with auto_refresh=True will reload every 5 seconds to show updated data.
Work and workmonth views excluded to avoid disrupting focused work sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
buenosairesam
2025-10-14 01:25:39 -03:00
parent 5007f241dd
commit 422c4e2776
4 changed files with 15 additions and 8 deletions

View File

@@ -148,7 +148,7 @@ def workmonth(month=None, year=None):
cal.setcalmonth(usemonth)
cal.setcalyear(useyear)
return render_template("calendar.html", content=cal.formatmonth(useyear, usemonth))
return render_template("calendar.html", content=cal.formatmonth(useyear, usemonth), auto_refresh=False)
@dmbp.route("/month")
@@ -174,4 +174,4 @@ def month(month=None, year=None, task=None):
cal.setcalmonth(usemonth)
cal.setcalyear(useyear)
return render_template("calendar.html", content=cal.formatmonth(useyear, usemonth))
return render_template("calendar.html", content=cal.formatmonth(useyear, usemonth), auto_refresh=True)