From 5ccf2b593f5deebb219cc36f1a089c3238ba82fe Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 23 Mar 2024 21:57:17 +0000 Subject: Dates --- wiki.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiki.py') diff --git a/wiki.py b/wiki.py index 6c1cf04..c629953 100644 --- a/wiki.py +++ b/wiki.py @@ -31,7 +31,7 @@ if DEV: # check two words pascal case -app.router.add_filter('pc', lambda conf: (r'[A-Z][a-z]+[A-Z][a-z]*', None, None)) +app.router.add_filter("pc", lambda conf: (r"[A-Z][a-z]+[A-Z][a-z]*", None, None)) @app.route("/") @@ -75,7 +75,7 @@ def edit_save(db, name): page = model.get_page(db, name) if page.version is not None: - page.updated_at = datetime.utcnow() + page.updated_at = model.Page.now() page.content = request.forms.get("content") page.changelog = request.forms.get("changelog") page.version = md5(str(page.updated_at).encode()).hexdigest() -- cgit v1.2.3