fix some stuff

This commit is contained in:
James Ravenscroft 2024-09-08 15:24:48 +00:00
parent b483ebf869
commit 7e9aa77769
2 changed files with 6 additions and 6 deletions

2
run.sh
View File

@ -1,2 +1,2 @@
#!/bin/bash
FLASK_APP=microcosm.wsgi:app flask run --port 10183
FLASK_APP=microcosm.wsgi:app poetry run flask run --port 10183

View File

@ -353,7 +353,7 @@ def process_multipart_post():
frontmatter["photo"].append(photo_url)
docstr += f'\n\n<img src="{photo_url}" class="u-photo" />'
#docstr += f'\n\n<img src="{photo_url}" class="u-photo" />'
docstr += f"\n\n {doc['content']}"
@ -373,8 +373,8 @@ def process_multipart_post():
frontmatter["thumbnail"] = photo_objects[0][0]
docstr = ""
for photo in photo_objects:
docstr += f"<img src=\"{photo[0]}\" alt=\"{photo[1]}\" class=\"u-photo\" /> \n\n {doc['content']}"
#for photo in photo_objects:
# docstr += f"<img src=\"{photo[0]}\" alt=\"{photo[1]}\" class=\"u-photo\" /> \n\n {doc['content']}"
else:
docstr = doc.get("content", "") if "content" in doc else ""
@ -448,8 +448,8 @@ def process_json_post():
]
frontmatter["thumbnail"] = frontmatter["photo"][0]["value"]
docstr = ""
for photo in photo_objects:
docstr += f'<img src="{photo[0]}" alt="{photo[1]}" class="u-photo" /> \n\n'
#for photo in photo_objects:
# docstr += f'<img src="{photo[0]}" alt="{photo[1]}" class="u-photo" /> \n\n'
for content in props.get("content", []):