mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-21 23:50:30 +00:00
Fix version detection to work with sqlalchemy version 2.0.36.dev0
This commit is contained in:
parent
92fbc9c792
commit
6cb1449ff3
@ -87,7 +87,7 @@ except ImportError:
|
||||
|
||||
|
||||
sql_version = metadata("sqlalchemy")["Version"]
|
||||
sqlalchemy_version2 = ([int(x) for x in sql_version.split('.')] >= [2, 0, 0])
|
||||
sqlalchemy_version2 = ([int(x) if x.isnumeric() else 0 for x in sql_version.split('.')[:3]] >= [2, 0, 0])
|
||||
|
||||
|
||||
@app.after_request
|
||||
|
Loading…
Reference in New Issue
Block a user