diff --git a/README.md b/README.md index 57d6027..738ee1d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Maloja +[![](https://img.shields.io/pypi/v/malojaserver?style=for-the-badge) +![](https://img.shields.io/pypi/dm/malojaserver?style=for-the-badge)](https://pypi.org/project/malojaserver/) +[![](https://img.shields.io/pypi/l/malojaserver?style=for-the-badge)](https://github.com/krateng/maloja/blob/master/LICENSE) + Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense. You can check [my own Maloja page](https://maloja.krateng.ch) to see what it looks like. diff --git a/maloja/__init__.py b/maloja/__init__.py index 08b96ed..951b56c 100644 --- a/maloja/__init__.py +++ b/maloja/__init__.py @@ -7,7 +7,7 @@ author = { "email":"maloja@krateng.dev", "github": "krateng" } -version = 2,0,6 +version = 2,0,7 versionstr = ".".join(str(n) for n in version) diff --git a/maloja/database.py b/maloja/database.py index b236463..00258f4 100644 --- a/maloja/database.py +++ b/maloja/database.py @@ -253,7 +253,8 @@ def server_info(): return { "name":settings.get_settings("NAME"), - "version":version + "version":version, + "versionstring":".".join(str(n) for n in version) } ## All database functions are separated - the external wrapper only reads the request keys, converts them into lists and renames them where necessary, and puts the end result in a dict if not already so it can be returned as json @@ -280,7 +281,7 @@ def info_external(**keys): response.set_header("Access-Control-Allow-Origin","*") response.set_header("Content-Type","application/json") - + result = info() return result