actually create calendars, not appointments…
This commit is contained in:
parent
0ee099368c
commit
4d01ea72b5
414 changed files with 2865 additions and 2120 deletions
|
|
@ -100,7 +100,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 46,
|
||||
"execution_count": 54,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
|
@ -119,16 +119,19 @@
|
|||
"\n",
|
||||
" appointment = create_event(day, phone_time)\n",
|
||||
" appointment.name = therapist['name']\n",
|
||||
" if 'phone' in therapist:\n",
|
||||
" appointment.description = therapist['phone']\n",
|
||||
" therapist_calendar.events.add(appointment)\n",
|
||||
"\n",
|
||||
" # save appointment\n",
|
||||
" outpath = os.path.join(path, f'{therapist['name'].replace(' ', '_').replace('/', '&')}_{mapday(day)}_{str(i)}.ics')\n",
|
||||
" with open(outpath, \"w+\", newline='') as outfile:\n",
|
||||
" outfile.write(appointment.serialize()) "
|
||||
" # save appointment\n",
|
||||
" outpath = os.path.join(path, f'{therapist['name'].replace(' ', '_').replace('/', '&')}.ics')\n",
|
||||
" with open(outpath, \"w+\", newline='') as outfile:\n",
|
||||
" outfile.write(therapist_calendar.serialize()) "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 49,
|
||||
"execution_count": 55,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
|
@ -155,13 +158,6 @@
|
|||
"\n",
|
||||
"create_ics_files(with_vt, os.path.join('data', 'icsfiles', 'with_vt'))\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue