aboutsummaryrefslogtreecommitdiff
path: root/wiki.py
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-03-23 21:57:17 +0000
committerJuan J. Martinez <jjm@usebox.net>2024-03-23 21:57:17 +0000
commit5ccf2b593f5deebb219cc36f1a089c3238ba82fe (patch)
tree49e3555f72953432dc8dfe8b6555b894bca7ea5e /wiki.py
parente074abbcb7c193e0eb4ae990ad50ac371f01bce8 (diff)
downloadpersonal-wiki-pybottle-5ccf2b593f5deebb219cc36f1a089c3238ba82fe.tar.gz
personal-wiki-pybottle-5ccf2b593f5deebb219cc36f1a089c3238ba82fe.zip
Diffstat (limited to 'wiki.py')
-rw-r--r--wiki.py4
1 files changed, 2 insertions, 2 deletions
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()