From 96f370b0cac68a763a7871519e0ddd06673cf050 Mon Sep 17 00:00:00 2001 From: Ctibor Date: Thu, 23 Mar 2017 09:16:45 +0100 Subject: rename Link.caption to Link.timestamp --- cgi-bin/link.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi-bin/link.py') diff --git a/cgi-bin/link.py b/cgi-bin/link.py index d6f3251..5cb6b2d 100644 --- a/cgi-bin/link.py +++ b/cgi-bin/link.py @@ -28,8 +28,8 @@ class Link: else: return "" - def caption(self, figure): - if self.detect(figure): + def timestamp(self, date): + if self.detect(date): date=datetime.datetime.strftime(datetime.datetime.strptime(figure[:12], "%Y%m%d%H%M"), "%Y-%m-%d %H:%M") return date else: -- cgit v1.2.3