aboutsummaryrefslogtreecommitdiffstats
path: root/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'views.py')
-rw-r--r--views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/views.py b/views.py
index d69ac51..fda6152 100644
--- a/views.py
+++ b/views.py
@@ -55,7 +55,7 @@ def render_file(path):
{
'title': path.split('.')[0].upper(),
'parent_dir': '/' + '/'.join(path.split('/')[:-1]),
- 'last_update': file_last_modified(abs_path)
+ 'last_update': file_last_modified(path),
}
)
if abs_path.endswith('.html'):
@@ -134,6 +134,6 @@ def render_rss_feed():
feed = render_template("feed.xml", **context)
response = make_response(feed)
response.headers['Content-Type'] = str(
- siteconfig.MIMETYPES.get(".xml")
+ siteconfig.MIMETYPES.get(".xml")
)
return response