more migrations fixes

This commit is contained in:
Nick Sweeting
2025-12-31 16:10:56 -08:00
parent 8f518500a4
commit 6521e7ddda
3 changed files with 65 additions and 11 deletions

View File

@@ -1198,10 +1198,10 @@ def process_hook_records(records: List[Dict[str, Any]], overrides: Dict[str, Any
continue
try:
# Dispatch to appropriate model's from_jsonl() method
# Dispatch to appropriate model's from_json() method
if record_type == 'Snapshot':
from archivebox.core.models import Snapshot
obj = Snapshot.from_jsonll(record.copy(), overrides)
obj = Snapshot.from_json(record.copy(), overrides)
if obj:
stats['Snapshot'] = stats.get('Snapshot', 0) + 1