contentai / check_json_posts.py
webmazta
Fix UI caching bug preventing javascript redo logic from executing
324a56b
Raw History Blame Contribute Delete
277 Bytes
import app
conn = app.get_db()
rows = conn.execute("SELECT id, source_url FROM posts WHERE source_url LIKE '%{%'").fetchall()
if not rows:
print("NO POSTS FOUND WITH JSON IN SOURCE_URL")
else:
for r in rows:
print(f"[{r['id']}] {r['source_url']}")
conn.close()