diff options
Diffstat (limited to 'db.py')
-rw-r--r-- | db.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ class File(Base): return os.path.join(settings.file_directory, self.hash + os.path.splitext(self.filename)[1]) def html(self): - return '<a href="/f/{hash}/{filename}">{filename}</a> <sup><a href="/f/{hash}">1</a> <a href="/f/{hash}{ext}">2</a></sup> ({size}) on {date}'.format( + return u'<a href="/f/{hash}/{filename}">{filename}</a> <sup><a href="/f/{hash}">1</a> <a href="/f/{hash}{ext}">2</a></sup> ({size}) on {date}'.format( hash = self.hash, filename = self.filename, ext = os.path.splitext(self.filename)[1], size = self.pretty_size(os.path.getsize(self.get_path())), date = self.date.strftime('%Y-%m-%d %H:%M:%S UTC')) |