mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 14:56:10 +01:00
minor fix to gdrive backups
This commit is contained in:
@@ -210,6 +210,9 @@ class IncScheduler():
|
|||||||
credentials = google.oauth2.credentials.Credentials(gDriveData['token'], gDriveData['refresh_token'],
|
credentials = google.oauth2.credentials.Credentials(gDriveData['token'], gDriveData['refresh_token'],
|
||||||
gDriveData['token_uri'], gDriveData['client_id'],
|
gDriveData['token_uri'], gDriveData['client_id'],
|
||||||
gDriveData['client_secret'], gDriveData['scopes'])
|
gDriveData['client_secret'], gDriveData['scopes'])
|
||||||
|
items.auth = json.dumps(credentials)
|
||||||
|
items.save()
|
||||||
|
|
||||||
drive = build('drive', 'v3', credentials=credentials)
|
drive = build('drive', 'v3', credentials=credentials)
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
GDriveJobLogs(owner=items, status=backupSchedule.ERROR, message='Connection to this account failed. Delete and re-setup this account. Error: %s' % (str(msg))).save()
|
GDriveJobLogs(owner=items, status=backupSchedule.ERROR, message='Connection to this account failed. Delete and re-setup this account. Error: %s' % (str(msg))).save()
|
||||||
|
|||||||
118
requirments.txt
118
requirments.txt
@@ -1,72 +1,64 @@
|
|||||||
|
acme==0.21.1
|
||||||
|
asgiref==3.2.3
|
||||||
asn1crypto==0.24.0
|
asn1crypto==0.24.0
|
||||||
atomicwrites==1.3.0
|
Babel==0.9.6
|
||||||
attrs==19.3.0
|
backports.ssl-match-hostname==3.5.0.1
|
||||||
backports.functools-lru-cache==1.6.1
|
|
||||||
bcrypt==3.1.7
|
bcrypt==3.1.7
|
||||||
beautifulsoup4==4.9.1
|
boto3==1.9.64
|
||||||
cachetools==3.1.1
|
botocore==1.12.64
|
||||||
caniusepython3==7.2.0
|
certifi==2018.4.16
|
||||||
certifi==2020.4.5.2
|
|
||||||
cffi==1.13.1
|
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
configparser==4.0.2
|
cloudflare==2.6.1
|
||||||
contextlib2==0.6.0.post1
|
ConfigArgParse==0.15.2
|
||||||
|
configobj==5.0.6
|
||||||
cryptography==2.8
|
cryptography==2.8
|
||||||
decorator==4.4.2
|
decorator==3.4.0
|
||||||
distlib==0.3.0
|
Django==3.0.1
|
||||||
Django==1.11
|
docker==3.6.0
|
||||||
|
docker-pycreds==0.4.0
|
||||||
|
docutils==0.14
|
||||||
enum34==1.1.6
|
enum34==1.1.6
|
||||||
funcsigs==1.0.2
|
funcsigs==1.0.2
|
||||||
futures==3.3.0
|
future==0.18.2
|
||||||
google==2.0.3
|
idna==2.6
|
||||||
google-api-core==1.20.0
|
ipaddress==1.0.16
|
||||||
google-api-python-client==1.9.3
|
IPy==0.75
|
||||||
google-auth==1.17.2
|
Jinja2==2.7.2
|
||||||
google-auth-httplib2==0.0.3
|
jmespath==0.9.3
|
||||||
google-auth-oauthlib==0.4.1
|
josepy==1.1.0
|
||||||
googleapis-common-protos==1.52.0
|
jsonpatch==1.2
|
||||||
gpg==1.10.0
|
jsonpointer==1.9
|
||||||
httplib2==0.18.1
|
MarkupSafe==0.19
|
||||||
idna==2.9
|
mock==2.0.0
|
||||||
importlib-metadata==0.23
|
mysqlclient==1.4.6
|
||||||
ipaddress==1.0.23
|
paramiko==2.7.1
|
||||||
keyring==10.6.0
|
parsedatetime==2.4
|
||||||
keyrings.alt==3.0
|
pbr==4.0.4
|
||||||
more-itertools==5.0.0
|
pexpect==4.4.0
|
||||||
mysqlclient==1.3.10
|
prettytable==0.7.2
|
||||||
oauthlib==3.1.0
|
psutil==5.4.3
|
||||||
packaging==19.2
|
|
||||||
paramiko==2.6.0
|
|
||||||
pathlib2==2.3.5
|
|
||||||
pexpect==4.7.0
|
|
||||||
pluggy==0.13.0
|
|
||||||
protobuf==3.12.2
|
|
||||||
psutil==5.6.3
|
|
||||||
ptyprocess==0.6.0
|
ptyprocess==0.6.0
|
||||||
py==1.8.0
|
py3dns==3.2.1
|
||||||
pyasn1==0.4.8
|
pycparser==2.18
|
||||||
pyasn1-modules==0.2.8
|
pygpgme==0.3
|
||||||
pycairo==1.16.2
|
|
||||||
pycparser==2.19
|
|
||||||
pycrypto==2.6.1
|
|
||||||
pygobject==3.26.1
|
|
||||||
PyNaCl==1.3.0
|
PyNaCl==1.3.0
|
||||||
pyOpenSSL==19.1.0
|
pyOpenSSL==17.5.0
|
||||||
pyparsing==2.4.5
|
pyRFC3339==1.1
|
||||||
pytest==4.6.6
|
python-dateutil==2.7.5
|
||||||
pytz==2020.1
|
pytz==2018.4
|
||||||
pyxdg==0.25
|
pyudev==0.15
|
||||||
requests==2.23.0
|
pyxattr==0.7.1
|
||||||
requests-oauthlib==1.3.0
|
PyYAML==3.10
|
||||||
rsa==4.0
|
requests==2.18.4
|
||||||
scandir==1.10.0
|
requests-file==1.4.3
|
||||||
SecretStorage==2.3.1
|
s3transfer==0.1.13
|
||||||
selenium==3.141.0
|
tornado==6.0.4
|
||||||
SimpleWebSocketServer==0.1.1
|
six==1.13.0
|
||||||
six==1.15.0
|
sqlparse==0.3.0
|
||||||
soupsieve==1.9.6
|
tldextract==2.2.0
|
||||||
uritemplate==3.0.1
|
urllib3==1.22
|
||||||
urllib3==1.25.9
|
websocket-client==0.56.0
|
||||||
|
zope.component==4.4.1
|
||||||
|
zope.event==4.3.0
|
||||||
|
zope.interface==4.5.0
|
||||||
validators==0.14.2
|
validators==0.14.2
|
||||||
wcwidth==0.1.7
|
|
||||||
zipp==0.6.0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user