Skip to content

Commit

Permalink
not load modules chapter twice
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Aug 1, 2024
1 parent 63acd00 commit 1a8f3f4
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions mathics_django/web/controllers/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,14 @@ def check_for_new_load_modules():
)
if mathics3_module_part is None:
print("Something is wrong: mathics3_module variable should not be None")
return
else:
# The "Mathics3 modules" part already exists; add the new chapters.
new_modules = pymathics_modules - seen_pymathics_modules
for new_module in new_modules:
chapter = gather_doc_chapter(
new_module, mathics3_module_part, pymathics_builtins_by_module
)
mathics3_module_part.chapters.append(chapter)
pass
pass

# The "Mathics3 modules" part already exists; add the new chapters.
new_modules = pymathics_modules - seen_pymathics_modules
for new_module in new_modules:
chapter = gather_doc_chapter(
new_module, mathics3_module_part, pymathics_builtins_by_module
)
# mathics3_module_part.chapters.append(chapter)
seen_pymathics_modules = copy(pymathics_modules)
return

Expand Down

0 comments on commit 1a8f3f4

Please sign in to comment.