initial commit
This commit is contained in:
@@ -4,6 +4,7 @@ import os
|
||||
import caldav
|
||||
import datetime
|
||||
from icalendar import cal, Event
|
||||
from flask import render_template
|
||||
import requests
|
||||
url = os.getenv('caldav_url')
|
||||
username = os.getenv('username')
|
||||
@@ -17,7 +18,12 @@ def daterange(start_date, end_date):
|
||||
|
||||
@app.route('/')
|
||||
def hello_world():
|
||||
url = os.getenv('caldav_url')
|
||||
username = os.getenv('username')
|
||||
password = os.getenv('password')
|
||||
cal_id = os.getenv('cal_id')
|
||||
date_obj = datetime.datetime.now()
|
||||
print (url)
|
||||
|
||||
start_of_week = date_obj - timedelta(days=date_obj.weekday()) # Monday
|
||||
end_of_week = start_of_week + timedelta(days=7) # Sunday
|
||||
|
||||
Reference in New Issue
Block a user