Skip to content

Commit 9fde4a2

Browse files
committed
Consolidate redundant variables
1 parent 81ef39a commit 9fde4a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sheets/quickstart/quickstart.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ def main():
3737
service = build('sheets', 'v4', http=creds.authorize(Http()))
3838

3939
# Call the Sheets API
40-
SPREADSHEET_ID = '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms'
41-
RANGE_NAME = 'Class Data!A2:E'
42-
result = service.spreadsheets().values().get(spreadsheetId=SPREADSHEET_ID,
43-
range=RANGE_NAME).execute()
40+
sheet = service.spreadsheets()
41+
result = sheet.values().get(spreadsheetId=SAMPLE_SPREADSHEET_ID,
42+
range=SAMPLE_RANGE_NAME).execute()
4443
values = result.get('values', [])
4544

4645
if not values:

0 commit comments

Comments
 (0)