fix: use None instead of '' for absent fitness_flags to match schema
Review feedback: d.get('fitness_flags') without a default preserves the
null vs absent distinction mandated by the manifest schema (string | null).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e2963cbcba
commit
abac7f7ed7
1 changed files with 1 additions and 1 deletions
|
|
@ -834,7 +834,7 @@ for fname in sorted(os.listdir(output_dir)):
|
|||
f'candidate_{int(cand_str):03d}.push3'
|
||||
)
|
||||
if os.path.exists(push3_path):
|
||||
flags = d.get('fitness_flags', '')
|
||||
flags = d.get('fitness_flags')
|
||||
qualifying.append((fitness, push3_path, gen_idx, cand_str, flags))
|
||||
except (json.JSONDecodeError, ValueError, TypeError, AttributeError):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue