mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
fix /stat
This commit is contained in:
parent
b70191ca2a
commit
c3fd205b7d
@ -47,6 +47,7 @@ import db
|
||||
from shutil import move, copyfile
|
||||
from tornado.ioloop import IOLoop
|
||||
from tornado import version as tornadoVersion
|
||||
from builtins import str
|
||||
|
||||
try:
|
||||
from imp import reload
|
||||
@ -1050,8 +1051,8 @@ def stats():
|
||||
stdin=subprocess.PIPE)
|
||||
p.wait()
|
||||
for lines in p.stdout.readlines():
|
||||
if re.search('Amazon kindlegen\(', lines):
|
||||
versions['KindlegenVersion'] = lines
|
||||
if re.search('Amazon kindlegen\(', str(lines)):
|
||||
versions['KindlegenVersion'] = str(lines)
|
||||
versions['PythonVersion'] = sys.version
|
||||
versions['babel'] = babelVersion
|
||||
versions['sqlalchemy'] = sqlalchemyVersion
|
||||
|
Loading…
Reference in New Issue
Block a user