mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-02 12:22:40 +02:00
chore: linting and formatting
This commit is contained in:
parent
ef361e16b4
commit
94367e4226
16 changed files with 143 additions and 131 deletions
|
|
@ -421,13 +421,14 @@ async def fetch_documents_by_ids(
|
|||
start_time = metadata.get("start_time", "")
|
||||
location_name = metadata.get("location_name", "")
|
||||
meeting_url = metadata.get("meeting_url", "")
|
||||
|
||||
|
||||
title = f"Luma: {event_name}"
|
||||
if start_time:
|
||||
# Format the start time for display
|
||||
try:
|
||||
if "T" in start_time:
|
||||
from datetime import datetime
|
||||
|
||||
start_dt = datetime.fromisoformat(
|
||||
start_time.replace("Z", "+00:00")
|
||||
)
|
||||
|
|
@ -435,7 +436,7 @@ async def fetch_documents_by_ids(
|
|||
title += f" ({formatted_time})"
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
description = (
|
||||
doc.content[:100] + "..."
|
||||
if len(doc.content) > 100
|
||||
|
|
@ -444,8 +445,8 @@ async def fetch_documents_by_ids(
|
|||
if location_name:
|
||||
description += f" | Venue: {location_name}"
|
||||
elif meeting_url:
|
||||
description += f" | Online Event"
|
||||
|
||||
description += " | Online Event"
|
||||
|
||||
url = event_url if event_url else ""
|
||||
|
||||
elif doc_type == "EXTENSION":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue