diff options
author | Ctibor <ctibor@brancik.cz> | 2017-03-23 09:16:45 +0100 |
---|---|---|
committer | Ctibor <ctibor@brancik.cz> | 2017-03-23 09:16:45 +0100 |
commit | 96f370b0cac68a763a7871519e0ddd06673cf050 (patch) | |
tree | ff65c21a13c1190a014303c0414baa9615f72a43 /cgi-bin/link.py | |
parent | 11ad1a5f14b82932aa275c3c71af80afb367c11a (diff) | |
download | hnizdo-96f370b0cac68a763a7871519e0ddd06673cf050.tar.gz hnizdo-96f370b0cac68a763a7871519e0ddd06673cf050.tar.bz2 |
rename Link.caption to Link.timestamp
Diffstat (limited to 'cgi-bin/link.py')
-rw-r--r-- | cgi-bin/link.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 "<img src=\""+self.src(target)+"\" class=\""+order+"\"/>" - 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: |