remove gsheets

This commit is contained in:
Ross
2021-07-11 10:36:33 +01:00
parent 9004afe22d
commit 70b3f89e23
4 changed files with 2 additions and 9 deletions
-7
View File
@@ -3,13 +3,6 @@ import csv
def load_leave(Rota, use_live_rota):
if use_live_rota:
from gsheets import Sheets
sheets = Sheets.from_files('~/client_secrets.json', '~/storage.json')
url = 'https://docs.google.com/spreadsheets/d/1SQh433Y2lj_KMyH3Ie7CeAl_x_Iq5XQ2GHeFm9ZDXYw/'
s = sheets.get(url)
s.sheets[2].to_csv("leave.csv", encoding='utf-8', dialect='excel')
file_name="leave.csv"
with open(file_name, newline="") as f: