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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user