diff options
author | nico <nico@magicbroccoli.de> | 2018-11-13 01:36:26 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-11-13 01:37:37 +0100 |
commit | 35647c091d183372e6acdbf1aec9c5d11b334fc6 (patch) | |
tree | 27e312d079ef5ed45c236e78a1d3182d24faff7e | |
parent | b0f3e3d72b1922e87d82aeaec19a40d9f829bb20 (diff) |
PEP8 + file corrections
- remove unused import
* change file ending for Codacy
* PEP8 corrections
+ added a requirements.txt file
-rw-r--r--[-rwxr-xr-x] | nextcloud_apps.py (renamed from nextcloud_apps) | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | nextcloud_dbsize.py (renamed from nextcloud_dbsize) | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | nextcloud_multi.py (renamed from nextcloud_multi) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | nextcloud_shares.py (renamed from nextcloud_shares) | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | nextcloud_users.py (renamed from nextcloud_users) | 0 | ||||
-rw-r--r-- | requirements.txt | 1 |
6 files changed, 5 insertions, 4 deletions
diff --git a/nextcloud_apps b/nextcloud_apps.py index e7ec543..4ef3abc 100755..100644 --- a/nextcloud_apps +++ b/nextcloud_apps.py @@ -35,7 +35,7 @@ class NextcloudApps: return config def get_data(self, api_response): - data ={ + data = { 'nextcloud_available_updates': [] } diff --git a/nextcloud_dbsize b/nextcloud_dbsize.py index 0d4ce9d..b9377a7 100755..100644 --- a/nextcloud_dbsize +++ b/nextcloud_dbsize.py @@ -36,7 +36,7 @@ class NextcloudDB: return config def get_data(self, api_response): - data ={ + data = { 'nextcloud_dbsize': [], } diff --git a/nextcloud_multi b/nextcloud_multi.py index da33225..da33225 100755..100644 --- a/nextcloud_multi +++ b/nextcloud_multi.py diff --git a/nextcloud_shares b/nextcloud_shares.py index dc56fba..0057a4c 100755..100644 --- a/nextcloud_shares +++ b/nextcloud_shares.py @@ -12,7 +12,6 @@ # # #%# family=manual # #%# capabilities=autoconf -import re import requests import sys import os @@ -54,7 +53,7 @@ class NextcloudShares: return config def get_data(self, api_response): - data ={ + data = { 'nextcloud_shares': [], } @@ -113,5 +112,6 @@ class NextcloudShares: else: self.run() + if __name__ == "__main__": NextcloudShares().main() diff --git a/nextcloud_users b/nextcloud_users.py index b2c651d..b2c651d 100755..100644 --- a/nextcloud_users +++ b/nextcloud_users.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..111f18b --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +requests>=2.20.0 |