import sys
import os
backend_dir = r"d:\radionica3d\backend"
sys.path.append(backend_dir)
import db

res = db.execute_query("SELECT * FROM order_messages WHERE message IS NULL OR message = ''")
print(f"Empty messages found: {len(res)}")
for m in res:
    print(m)
