summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2017-03-27 20:09:16 +0200
committerCtibor Brančík <ctibor@brancik.cz>2017-03-27 20:09:16 +0200
commit5ab3d9aa2bb9104172536e581268d83e4002566a (patch)
tree6eabfbb96bb67b2401d01eff778bfe0898234264
parent461553d549b90f00dbf6a5072dfe4ddc95aefa4d (diff)
downloadhnizdo-5ab3d9aa2bb9104172536e581268d83e4002566a.tar.gz
hnizdo-5ab3d9aa2bb9104172536e581268d83e4002566a.tar.bz2
Convert method to string!
-rw-r--r--cgi-bin/link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index f9d5776..5cdcb02 100644
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -28,7 +28,7 @@ class Link:
cssclass="class=\""+order+"\""
else:
cssclass=""
- first=datetime.datetime.strptime(self.first, "%Y%m%d%H%M")
+ first=datetime.datetime.strptime(str(self.first), "%Y%m%d%H%M")
cur=datetime.datetime.strptime(target, "%Y%m%d%H%M")
if first > cur:
return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\" "+cssclass+"/></a>"