chore: snapshot before performance optimization
This commit is contained in:
11
keep-notes/fix_hook_lang.py
Normal file
11
keep-notes/fix_hook_lang.py
Normal file
@@ -0,0 +1,11 @@
|
||||
with open('hooks/use-auto-tagging.ts', 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
# Make sure we add `const { language } = useLanguage();`
|
||||
content = content.replace(
|
||||
'export function useAutoTagging({ content, notebookId, enabled = true }: UseAutoTaggingProps) {',
|
||||
'export function useAutoTagging({ content, notebookId, enabled = true }: UseAutoTaggingProps) {\n const { language } = useLanguage();'
|
||||
)
|
||||
|
||||
with open('hooks/use-auto-tagging.ts', 'w') as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user