async def post(payload: SummaryPayloadSchema) -> int: summary = TextSummary( url=payload.url, summary="dummy summary", ) await summary.save() return summary.id
async def post(payload: SummaryPayloadSchema) -> int: """ post creates a new summary in db, given a valid payload """ summary = TextSummary(url=payload.url, summary="") await summary.save() return summary.id
async def create(url: str, timeframe: str, topic: str, category: str, uid: UUID) -> int: summary = TextSummary(url=url, timeFrame=timeframe, topic=topic, category=category, uid=uid, summary="") await summary.save() return summary.id
async def post(payload: SummaryPayloadSchema) -> int: summary = TextSummary(url=payload.url, summary=article_summary) await summary.save() return summary.id
async def post(payload: SummaryPayloadSchema) -> int: summary = TextSummary(url=payload.url, title="", summary="") await summary.save() return summary.id