Skip to content

Commit

Permalink
Corrige des commentaires
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Sep 9, 2024
1 parent 86d38e5 commit 0373dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zds/utils/management/commands/load_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0373dfa

Please sign in to comment.