Made Nextcloud archival optional.
This commit is contained in:
parent
72e4012489
commit
f272ca6436
1 changed files with 2 additions and 4 deletions
|
@ -10,10 +10,8 @@ def setup_archive_data(timestamp):
|
||||||
if(config['nextcloud']['webdav_hostname'] and config['nextcloud']['webdav_login'] and config['nextcloud']['webdav_password']):
|
if(config['nextcloud']['webdav_hostname'] and config['nextcloud']['webdav_login'] and config['nextcloud']['webdav_password']):
|
||||||
client = authenticate_nextcloud(config['nextcloud'])
|
client = authenticate_nextcloud(config['nextcloud'])
|
||||||
else:
|
else:
|
||||||
print(
|
print('Nextcloud WebDAV information missing/incomplete, skipping...')
|
||||||
'Please fill out the necessary information for using Nextcloud through WebDAV.')
|
return
|
||||||
print('\thttps://docs.nextcloud.com/server/16/user_manual/files/access_webdav.html')
|
|
||||||
exit(1)
|
|
||||||
ts = dt.fromtimestamp(int(int(timestamp)/1000))
|
ts = dt.fromtimestamp(int(int(timestamp)/1000))
|
||||||
date_ts = ts.strftime('%Y_%m_%d')
|
date_ts = ts.strftime('%Y_%m_%d')
|
||||||
time_ts = ts.strftime('%H_%M_%S')
|
time_ts = ts.strftime('%H_%M_%S')
|
||||||
|
|
Reference in a new issue