Files
Keep/keep-notes/fix_note_input.py
2026-04-17 21:14:43 +02:00

19 lines
579 B
Python

with open('components/note-input.tsx', 'r') as f:
content = f.read()
old_call = """ const { suggestions, isAnalyzing } = useAutoTagging({
content: type === 'text' ? fullContentForAI : '',
enabled: type === 'text' && isExpanded
})"""
new_call = """ const { suggestions, isAnalyzing } = useAutoTagging({
content: type === 'text' ? fullContentForAI : '',
enabled: type === 'text' && isExpanded,
notebookId: currentNotebookId
})"""
content = content.replace(old_call, new_call)
with open('components/note-input.tsx', 'w') as f:
f.write(content)