From 9378f7a073250df346c4a82abc80e33e07610569 Mon Sep 17 00:00:00 2001 From: Samuel Zielke Date: Mon, 15 Apr 2024 17:22:32 +0200 Subject: [PATCH] Add Google Api to HTML Update --- main/library.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main/library.py b/main/library.py index c4693b5..1b30ebb 100644 --- a/main/library.py +++ b/main/library.py @@ -1,4 +1,5 @@ import dropbox, yaml +import main.googleapi as gapi def writeToHtml(data): @@ -16,5 +17,10 @@ def writeToHtml(data): f.seek(0) # rewrite into the file for line in lines: f.write(line) - with open('COMBO_MO_MOBIL.htm', 'rb') as f: - dbx.files_upload(f.read(), "/COMBO_MO_MOBIL.htm", mode=dropbox.files.WriteMode("overwrite")) \ No newline at end of file + + # Dropbox Link + # with open('COMBO_MO_MOBIL.htm', 'rb') as f: + # dbx.files_upload(f.read(), "/COMBO_MO_MOBIL.htm", mode=dropbox.files.WriteMode("overwrite")) + + # Google Drive Link + gapi.upload_basic() \ No newline at end of file