Skip to content

Commit

Permalink
fix: Commented out html gen
Browse files Browse the repository at this point in the history
  • Loading branch information
idabblewith committed Mar 12, 2024
1 parent 3ac8208 commit b6ecd99
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 2,043 deletions.
303 changes: 0 additions & 303 deletions documents/concept_4.html

This file was deleted.

287 changes: 0 additions & 287 deletions documents/progressreport_4.html

This file was deleted.

301 changes: 0 additions & 301 deletions documents/projectclosure_4.html

This file was deleted.

371 changes: 0 additions & 371 deletions documents/projectplan_1.html

This file was deleted.

381 changes: 0 additions & 381 deletions documents/projectplan_3.html

This file was deleted.

392 changes: 0 additions & 392 deletions documents/projectplan_4.html

This file was deleted.

5 changes: 4 additions & 1 deletion documents/templates/project_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ <h1 class="project_document_section_h1_title">
<hr class="project_document_section_h1_title_hr">
</div>
<div class="project_document_section_content_container">
{% if value.data %}
{{ value.data | safe }}

{% else %}
<p>None</p>
{% endif %}
{% if value.title == "Methodology" and methodology_image and methodology_image != "" %}
<div
class="meth_image_container"
Expand Down
14 changes: 7 additions & 7 deletions documents/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1832,13 +1832,13 @@ def get_inner_html(html_content, html_tag):
)

# Specify the file path where you want to save the HTML file on the server
html_file_path = os.path.join(
settings.BASE_DIR,
"documents",
f'{document_type}_{doc_data["project_pk"]}.html',
)
with open(html_file_path, "w", encoding="utf-8") as html_file:
html_file.write(html_content)
# html_file_path = os.path.join(
# settings.BASE_DIR,
# "documents",
# f'{document_type}_{doc_data["project_pk"]}.html',
# )
# with open(html_file_path, "w", encoding="utf-8") as html_file:
# html_file.write(html_content)

# pdf_file_path = os.path.join(
# settings.BASE_DIR,
Expand Down

0 comments on commit b6ecd99

Please sign in to comment.