Skip to content

Commit

Permalink
Update requirements and add methods to to Calendar class to implement…
Browse files Browse the repository at this point in the history
… later
  • Loading branch information
DEENUU1 committed Jan 23, 2024
1 parent 673c222 commit 7beb48c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
18 changes: 16 additions & 2 deletions app/ai/integration/google_calendar.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from gcsa.google_calendar import GoogleCalendar
from config.settings import settings
from typing import List, Optional, Dict, Any
from gcsa.event import Event
from typing import Optional, Dict


class Calendar:
Expand Down Expand Up @@ -47,3 +46,18 @@ def get_all_events(self) -> Optional[str]:
events += event_str + "\n"

return events

def create_event(self) -> None:
pass

def search_event(self) -> None:
pass

def delete_event(self) -> None:
pass

def get_event(self) -> None:
pass

def update_event(self) -> None:
pass
8 changes: 0 additions & 8 deletions app/routers/health.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from fastapi import APIRouter
from ai.integration import google_calendar

router = APIRouter(
prefix="",
Expand All @@ -10,10 +9,3 @@
@router.get("/health", tags=["health"])
def health():
return {"status": "okk"}


@router.get("/test")
def test():
calendar = google_calendar.Calendar()
calendar_event = calendar.get_all_events()
print(calendar_event)

0 comments on commit 7beb48c

Please sign in to comment.