mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-30 01:02:02 +00:00
Event key passed as CLI argument and use live project
This commit is contained in:
@ -7,6 +7,7 @@ import datetime as dt
|
||||
import re
|
||||
import operator
|
||||
import os
|
||||
import sys
|
||||
import tbapy
|
||||
import todoist
|
||||
|
||||
@ -105,12 +106,12 @@ todoistToken = configParser.get('Settings', 'TodoistToken')
|
||||
# Setup Todoist
|
||||
api = todoist.TodoistAPI(todoistToken)
|
||||
api.sync()
|
||||
projectID = getProjectID(api, 'Test01')
|
||||
projectID = getProjectID(api, '🤖 Robotics')
|
||||
items = api.state['items']
|
||||
|
||||
# Setup the Blue Alliance
|
||||
tba = tbapy.TBA(tbaKey)
|
||||
eventKey = '2020ncpem'
|
||||
eventKey = sys.argv[1]
|
||||
event = tba.event(eventKey)
|
||||
setupDay = event['start_date']
|
||||
day1 = (dt.datetime.strptime(setupDay, '%Y-%m-%d') + dt.timedelta(days=1)).strftime('%Y-%m-%d')
|
||||
|
Reference in New Issue
Block a user