Skip to content

Commit

Permalink
calendar proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Nov 25, 2023
1 parent cc2bf7c commit f0db3ed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 361 deletions.
2 changes: 1 addition & 1 deletion src/cal.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const calendar = new Calendar(calendarEl, {
],
initialView: 'listWeek',
events: {
url: '/basic.ics',
url: 'https://faas-sfo3-7872a1dd.doserverless.co/api/v1/web/fn-67f34cf4-c3ed-479c-839e-2f7206029fcb/wildweb/calcache',
format: 'ics' // important!
},
headerToolbar: {
Expand Down
359 changes: 0 additions & 359 deletions static/basic.ics

This file was deleted.

2 changes: 1 addition & 1 deletion wwfunc/packages/wildweb/calcache/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from filecache import filecache

@filecache(10 * 60)
@filecache(15 * 60)
def main():
resp = requests.get("https://calendar.google.com/calendar/ical/62da059a43acfa2924e50e6aaa43e3aed3728f7eda51af7d7a43f0313404e09c%40group.calendar.google.com/public/basic.ics")
return {
Expand Down
10 changes: 10 additions & 0 deletions wwfunc/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ packages:
OAUTH_SECRET: '${OAUTH_SECRET}'
annotations: {}
limits: {}
- name: calcache
binary: false
main: ""
runtime: python:3.11
web: true
webSecure: false
parameters: {}
environment: {}
annotations: {}
limits: {}

0 comments on commit f0db3ed

Please sign in to comment.