Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
OPSergio committed Sep 30, 2024
1 parent f77f059 commit 5773cb4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,21 +246,6 @@ def upload_to_gisaid(request):
)


@login_required
def create_new_user_account(request):
converted_to_html = docs.utils.markdown.markdown_to_html(
"create_new_user_account.md"
)
if isinstance(converted_to_html, dict):
return render(request, "docs/error_404.html")
converted_to_html = docs.utils.markdown.fix_img_folder(converted_to_html)
return render(
request,
"docs/base.html",
{"html": converted_to_html},
)


@login_required
def upload_metadata(request):
converted_to_html = docs.utils.markdown.markdown_to_html("upload_metadata.md")
Expand Down

0 comments on commit 5773cb4

Please sign in to comment.