1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-06-29 09:50:54 +02:00

Improve scripts to be run with cron jobs

This commit is contained in:
Yohann D'ANELLO
2020-08-05 23:15:05 +02:00
parent 034d8c43b6
commit 31dc478b7a
4 changed files with 58 additions and 22 deletions

View File

@ -131,6 +131,8 @@ class Command(ImportCommand):
"registration_valid": True,
"email_confirmed": True,
"promotion": MAP_IDBDE_PROMOTION[row["idbde"]]["promo"],
"report_frequency": row["report_period"],
"last_report": make_aware(row["previous_report_date"]).date(),
}
note_dict["created_at"] = make_aware(MAP_IDBDE_PROMOTION[row["idbde"]]["created_at"])
note_dict["polymorphic_ctype"] = note_user_type