Show version on /-/plugins page, closes #248

This commit is contained in:
Simon Willison 2018-05-04 15:04:33 -03:00
commit ca290719ed
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
3 changed files with 10 additions and 3 deletions

View file

@ -1434,6 +1434,7 @@ class Datasette:
'name': p['name'],
'static': p['static_path'] is not None,
'templates': p['templates_path'] is not None,
'version': p.get('version'),
} for p in get_plugins(pm)]),
'/-/plugins<as_json:(\.json)?$>'
)