Update main.py
Browse files
main.py
CHANGED
|
@@ -666,7 +666,7 @@ def get_note_by_id(note_id):
|
|
| 666 |
note_res = supabase.table('notes') \
|
| 667 |
.select('id, content, created_at, tts_audio_url, study_materials(title, type, source_ref)') \
|
| 668 |
.eq('id', note_id) \
|
| 669 |
-
.eq('user_id', user.id) \
|
| 670 |
.maybe_single() \
|
| 671 |
.execute()
|
| 672 |
|
|
|
|
| 666 |
note_res = supabase.table('notes') \
|
| 667 |
.select('id, content, created_at, tts_audio_url, study_materials(title, type, source_ref)') \
|
| 668 |
.eq('id', note_id) \
|
| 669 |
+
.eq('user_id', user.id) \
|
| 670 |
.maybe_single() \
|
| 671 |
.execute()
|
| 672 |
|