remove gsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user