Skip to content

Commit e7328c5

Browse files
committed
try again
1 parent 06c5b07 commit e7328c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

store/backend/manage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66

77
import click
8+
import sqlalchemy as sa
89
from flask_migrate import Migrate
910

1011
from neurostore.core import app, db
@@ -91,7 +92,7 @@ def backfill_note_keys(limit, dry_run):
9192
ids_sql = """
9293
SELECT id
9394
FROM annotations
94-
WHERE note_keys IS NULL OR note_keys = '{}'::jsonb
95+
WHERE note_keys IS NULL OR note_keys::text = '{}'
9596
ORDER BY created_at
9697
"""
9798
if limit:

0 commit comments

Comments
 (0)