migrate: remove JSON, DB-only — mo_data, server, scripts, prompts (27 files)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
with open('/home/hmo/web-dashboard/data/decisions.json') as f:
|
||||
d = json.load(f)
|
||||
for i, e in enumerate(d.get('decisions', [])[:3]):
|
||||
print(f"\n=== Entry {i}: {e.get('code')} {e.get('name')} ===")
|
||||
for k, v in sorted(e.items()):
|
||||
t = type(v).__name__
|
||||
sample = str(v)[:60] if v is not None else 'None'
|
||||
print(f" {k}: {t} = {sample}")
|
||||
if i >= 2:
|
||||
break
|
||||
Reference in New Issue
Block a user