Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(analytics): Adding LinkedIn, TwitterX, and Reddit to analytics report and refactoring pivot gen as a builder #127

Merged
merged 8 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions gdrive/analytics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import fastapi
from pydantic import BaseModel
from fastapi import responses
from gdrive import analytics_client, idva_flow_analytics, error
from gdrive import analytics_client, error
nathan-moore-97 marked this conversation as resolved.
Show resolved Hide resolved
from gdrive.idva import flow_analytics
dzaslavskiy marked this conversation as resolved.
Show resolved Hide resolved

log = logging.getLogger(__name__)
router = fastapi.APIRouter()
Expand Down Expand Up @@ -63,9 +64,9 @@ async def list_accounts():

def run_analytics(start_date: datetime, end_date: datetime):
try:
idva_flow_analytics.create_report(start_date, end_date)
flow_analytics.create_report(start_date, end_date)
except Exception as e:
log.error(e)
log.exception(e)
raise error("Report generation failed")


Expand Down
Loading