mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-07-01 10:31:15 +02:00
code cleaning
This commit is contained in:
@ -333,7 +333,7 @@ def import_activities(cur):
|
||||
update_line(idx, n, row["alias"])
|
||||
organizer = Club.objects.filter(name=row["signature"])
|
||||
if organizer.exists():
|
||||
# Try to find the club that organizes the activity. If not founded, assume it's Kfet (fix manually)
|
||||
# Try to find the club that organizes the activity. If not found, assume it's Kfet (fix manually)
|
||||
organizer = organizer.get()
|
||||
else:
|
||||
organizer = kfet
|
||||
@ -347,7 +347,7 @@ def import_activities(cur):
|
||||
"date_start": row["debut"],
|
||||
"date_end": row["fin"],
|
||||
"valid": row["validepar"] is not None,
|
||||
"open": row["open"], # Should be always False
|
||||
"open": row["open"], # Should always be False
|
||||
}
|
||||
# WARNING: Fields lieu, liste, listeimprimee are missing
|
||||
try:
|
||||
|
Reference in New Issue
Block a user