1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00

[sysadmin] Fix license parse and system info bug

This commit is contained in:
zhengxie
2015-05-29 17:07:18 +08:00
parent ef9032be6c
commit 5581d1cf36

View File

@@ -65,7 +65,8 @@ def sys_info(request):
- `request`: - `request`:
""" """
try: try:
users_count = ccnet_threaded_rpc.count_emailusers('DB') users_count = ccnet_threaded_rpc.count_emailusers('DB') + \
ccnet_threaded_rpc.count_emailusers('LDAP')
except Exception as e: except Exception as e:
logger.error(e) logger.error(e)
users_count = 0 users_count = 0
@@ -89,7 +90,7 @@ def sys_info(request):
is_pro = is_pro_version() is_pro = is_pro_version()
if is_pro: if is_pro:
license_dict = parse_license('../../../../seafile-license.txt') license_dict = parse_license('../seafile-license.txt')
else: else:
license_dict = {} license_dict = {}
return render_to_response('sysadmin/sys_info.html', { return render_to_response('sysadmin/sys_info.html', {