Skip to content

Commit

Permalink
support: longer descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Apr 1, 2024
1 parent b47b6ff commit 930ab40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def process_package(packagename: str) -> Tuple[bool, Union[dict, None], str]:
# run_command(cleanup_command)
print(result)

if result[1]['description'] == "README.md":
if parsed_toml['description'] == "README.md":
with open(f'static/temp/{packagename}/README.md', 'r') as file:
parsed_toml['description'] = html.escape(file.read()) # Sanitize HTML content

Expand Down

0 comments on commit 930ab40

Please sign in to comment.