Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,15 @@ from oauth2client.service_account import ServiceAccountCredentials
|
|
| 7 |
# ------------------ AUTH ------------------
|
| 8 |
VALID_USERS = {
|
| 9 |
"[email protected]": "Pass.123",
|
| 10 |
-
"
|
| 11 |
-
"
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
# ------------------ GOOGLE SHEET SETUP ------------------
|
| 15 |
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
|
| 16 |
creds = ServiceAccountCredentials.from_json_keyfile_name("bid4carsappsheetdash.json", scope)
|
| 17 |
-
client = gspread.
|
| 18 |
sheet_url = "https://docs.google.com/spreadsheets/d/1eUXhcfWd3jtNmZC6U_Dr2F7obQcK81I4YrK-fKEbkyU"
|
| 19 |
|
| 20 |
# ------------------ DATA REFRESH FUNCTION ------------------
|
|
|
|
| 7 |
# ------------------ AUTH ------------------
|
| 8 |
VALID_USERS = {
|
| 9 |
"[email protected]": "Pass.123",
|
| 10 |
+
"donovanm@bid4cars.co.za": "Pass.123",
|
| 11 |
+
"grant@bid4cars.co.za": "Pass.123",
|
| 12 |
+
"[email protected]": "Pass.123"
|
| 13 |
}
|
| 14 |
|
| 15 |
# ------------------ GOOGLE SHEET SETUP ------------------
|
| 16 |
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
|
| 17 |
creds = ServiceAccountCredentials.from_json_keyfile_name("bid4carsappsheetdash.json", scope)
|
| 18 |
+
client = gspread.[email protected](creds)
|
| 19 |
sheet_url = "https://docs.google.com/spreadsheets/d/1eUXhcfWd3jtNmZC6U_Dr2F7obQcK81I4YrK-fKEbkyU"
|
| 20 |
|
| 21 |
# ------------------ DATA REFRESH FUNCTION ------------------
|