From 0373dfa806ad6f2322101214ae7c3c49e3453279 Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:00:42 +0200 Subject: [PATCH] Corrige des commentaires --- zds/utils/management/commands/load_fixtures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zds/utils/management/commands/load_fixtures.py b/zds/utils/management/commands/load_fixtures.py index 0516d98b24..bf4c06bfc7 100644 --- a/zds/utils/management/commands/load_fixtures.py +++ b/zds/utils/management/commands/load_fixtures.py @@ -592,12 +592,12 @@ def publish_opinion(content, action_flag, versioned): def handle_content_with_chapter_and_parts( container, size, fake, nb_avg_containers_in_content, nb_avg_extracts_in_content ): - if size == 1: # medium size tutorial + if size == 1: # medium size content nb_of_extracts = random.randint(1, nb_avg_extracts_in_content * 2) for k in range(nb_of_extracts): extract_title = fake.text(max_nb_chars=60) ExtractFactory(container=container, title=extract_title, light=False) - else: # big-size tutorial + else: # big-size content nb_of_containers = random.randint(1, nb_avg_containers_in_content * 2) for _ in range(nb_of_containers): subcontainer_title = fake.text(max_nb_chars=60)