diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-03-23 21:57:17 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-03-23 21:57:17 +0000 |
commit | 5ccf2b593f5deebb219cc36f1a089c3238ba82fe (patch) | |
tree | 49e3555f72953432dc8dfe8b6555b894bca7ea5e /wiki.py | |
parent | e074abbcb7c193e0eb4ae990ad50ac371f01bce8 (diff) | |
download | personal-wiki-pybottle-main.tar.gz personal-wiki-pybottle-main.zip |
Diffstat (limited to 'wiki.py')
-rw-r--r-- | wiki.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |