From f3c3fd231c17d01c801b8f2639ffa8f51a5d1c05 Mon Sep 17 00:00:00 2001 From: Kirby Date: Thu, 12 Mar 2020 17:50:31 +0100 Subject: [PATCH] Moving bill upload url into creds.yml --- ovh-factures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovh-factures.py b/ovh-factures.py index 199b706..61ae9f5 100755 --- a/ovh-factures.py +++ b/ovh-factures.py @@ -16,7 +16,7 @@ password = conf['nextcloud']['password'] client = ovh.Client() bills = client.get('/me/bill') for bill in bills: - url="https://nextcloud.hyrule.ovh/nextcloud/remote.php/dav/files/seb/Documents/Factures/OVH/" + url = conf['nextcloud']['url_factures'] details = client.get('/me/bill/%s' % bill) r = requests.get(details['pdfUrl'], stream=True) file_path = "/tmp/" + bill + ".pdf"