1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-04-30 12:23:36 +00:00
seafile-server/scripts/parse_seahub_db.py
feiniks d51591d8f7
get nickname from seahub database ()
* Add parse seahub database config

* Get nickname from seahub database

* Go get nickname from seahub database

* Save output of script to memory and fix some errors

* Add exec permission and free child_output

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-10 16:34:33 +08:00

7 lines
113 B
Python
Executable File

import json
import seahub_settings
db_infos = seahub_settings.DATABASES['default']
print(json.dumps(db_infos))