diff --git a/scripts/import_new_k2_items.py b/scripts/import_new_k2_items.py index 5aeac6f..5e14871 100644 --- a/scripts/import_new_k2_items.py +++ b/scripts/import_new_k2_items.py @@ -303,6 +303,12 @@ def main(): # Autor WP wp_author = user_map.get(created_by, 1) # fallback: admin + if created_by and created_by not in user_map: + # Autor Joomla sin usuario WP equivalente: queda atribuido a «Fe Adulta». + # NO se pierde el dato: corregir tras el delta con scripts/fix_k2_authors.php, + # que crea el usuario (nombre real de ew4r_users) y reasigna post_author (#143). + print(f" ⚠ autor K2 {created_by} sin user WP → queda en 'Fe Adulta' " + f"(corregir con fix_k2_authors.php)") # Extra fields ef = parse_extra_fields(ef_json)