# misses.csv stale since 10 Oct: cause and exact fix (ppdata, 13 Oct)
Cause: /opt/review/review.py (cron 00:41 UTC) crashes every night since ~11 Oct in gate():
  TypeError: '<' not supported between instances of 'NoneType' and 'str' (review.log).
A trade/bug with no timestamp makes day() return None; line 62 was already guarded, line 76 is not.
Because it crashes before the misses.csv write (line ~225), missloop.py (01:15) keeps re-reading the last row (10 Oct) and reposting the same review.
Fix (one line, line 76): `for d in sorted(days) if d]`  ->  `for d in sorted(k for k in days if k)]`
Then run once: `nice -n 15 python3 /opt/review/review.py`, check misses.csv has born_day 12 Oct.
Backup first: cp review.py review.py.bak_ops_$(date +%s). Live-safe: reporting script only, no live process touched.
Also: missloop reposts a stale day silently; it should skip if day == yesterday-2 or older (optional).
