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:
|
||||
|
||||
@@ -379,7 +379,7 @@ with open("rotas.html", "w") as f:
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="timetable.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="s.js" defer></script>
|
||||
<script src="timetable.js" defer></script>
|
||||
</head>
|
||||
<body>""")
|
||||
|
||||
|
||||
@@ -1899,7 +1899,7 @@ class RotaResults(object):
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="timetable.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="s.js" defer></script>
|
||||
<script src="timetable.js" defer></script>
|
||||
</head>
|
||||
{}</html>""".format(html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user