Skip to content

Commit

Permalink
upcoming events in primary calendar displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondls committed Aug 19, 2020
1 parent 28768b4 commit 9995995
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Schedulebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Call the Calendar API
now = datetime.datetime.utcnow().isoformat() + 'Z' # 'Z' indicates UTC time
print('Getting the upcoming 10 events')
print('Getting the upcoming 10 events in primary calendar')
events_result = service.events().list(calendarId='primary', timeMin=now,
maxResults=10, singleEvents=True,
orderBy='startTime').execute()
Expand Down
7 changes: 4 additions & 3 deletions csv_reader.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import csv
import pprint

filepath = "/Users/aarondelossantos/Documents/Schedules/Fall 2020.csv"
#filepath = "/Users/aarondelossantos/Documents/Schedules/Fall 2020.csv"
filepath = "/Users/aarondelossantos/Desktop/Course Syllabus and Schedule/Reserve Schedule.csv"

# A to Z type of schedule
# possibleSchedTypes = ["A", "B", "C", "D", "E", "F", "G"]
possibleSchedTypes = ["A", "B", "C", "D", "E", "F", "G"]

# M to F type of schedule
possibleSchedTypes = ["M", "T", "W", "R", "F"]
# possibleSchedTypes = ["M", "T", "W", "R", "F"]

def extractData(filepath):
print("Extracting events from CSV file")
Expand Down

0 comments on commit 9995995

Please sign in to comment.