Skip to content
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
2 changes: 1 addition & 1 deletion supernote/server/services/processor_modules/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def process(

for seg in segments_data:
date_range = seg.get("date_range", "Unknown Date")
text = seg.get("summary", "")
text = seg.get("summary", "").replace("\\n", "\n")
dates = seg.get("extracted_dates", [])
page_refs = seg.get("page_refs", [])

Expand Down
4 changes: 2 additions & 2 deletions supernote/server/static/js/api/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export async function fetchTranscript(fileId) {
'Content-Type': 'application/json',
'x-access-token': currentToken
},
body: JSON.stringify({ fileId: parseInt(fileId) })
body: JSON.stringify({ fileId: String(fileId) })
});

if (!response.ok) return '';
Expand All @@ -203,7 +203,7 @@ export async function fetchSummaries(fileId) {
'x-access-token': currentToken
},
// Extension endpoint expects { fileId: ... }
body: JSON.stringify({ fileId: fileId })
body: JSON.stringify({ fileId: String(fileId) })
});

if (!response.ok) {
Expand Down