mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Try pysqlite3-binary version as well, refs #1125
This commit is contained in:
parent
e2fea36540
commit
49d8fc0568
1 changed files with 6 additions and 4 deletions
|
|
@ -641,10 +641,12 @@ class Datasette:
|
|||
},
|
||||
}
|
||||
if using_pysqlite3:
|
||||
try:
|
||||
info["pysqlite3"] = pkg_resources.get_distribution("pysqlite3").version
|
||||
except pkg_resources.DistributionNotFound:
|
||||
pass
|
||||
for package in ("pysqlite3", "pysqlite3-binary"):
|
||||
try:
|
||||
info["pysqlite3"] = pkg_resources.get_distribution(package).version
|
||||
break
|
||||
except pkg_resources.DistributionNotFound:
|
||||
pass
|
||||
return info
|
||||
|
||||
def _plugins(self, request=None, all=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue