aboutsummaryrefslogtreecommitdiffstats
path: root/nextcloud_users
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2018-11-13 01:15:48 +0100
committernico <nico@magicbroccoli.de>2018-11-13 01:15:48 +0100
commita1027ff7736c5fb20932520a26150a7d19e64809 (patch)
tree1667ab4b2797e2e8200552ead7701fb89e6f0411 /nextcloud_users
parent4617b3009c09e89c77b34985de702bdca4f0617f (diff)
pep 8 corrections
* correct pep8 mistakes introduces by #2
Diffstat (limited to 'nextcloud_users')
-rwxr-xr-xnextcloud_users13
1 files changed, 6 insertions, 7 deletions
diff --git a/nextcloud_users b/nextcloud_users
index a577610..f68543e 100755
--- a/nextcloud_users
+++ b/nextcloud_users
@@ -38,27 +38,26 @@ class NextcloudUsers:
'last24hours.min 0',
'num_users.label number of users',
'num_users.info total number of users',
+ 'num_users.min 0',
+ 'num_users.info total number of users',
'num_users.min 0'
- 'num_users.info total number of users',
- 'num_users.min 0'
]
}
return config
def get_data(self, api_response):
- data ={
+ data = {
'nextcloud_users': [],
}
# users
- users = api_response['ocs']['data']['activeUsers']
+ users = api_response['ocs']['data']['activeUsers']
# append for every key in users the key and the value to the results
[data['nextcloud_users'].append(str(key) + ".value " + str(users[key]))
for key in users.keys()]
-
- #storage
- data['nextcloud_users'].append('num_users.value %s' % num_users)
+
+ # storage
num_users = api_response['ocs']['data']['nextcloud']['storage']['num_users']
data['nextcloud_users'].append('num_users.value %s' % num_users)