diff --git a/run.sh b/run.sh index 36161f2..7e20ff7 100755 --- a/run.sh +++ b/run.sh @@ -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 diff --git a/src/microcosm/__init__.py b/src/microcosm/__init__.py index bce4845..a2d4456 100644 --- a/src/microcosm/__init__.py +++ b/src/microcosm/__init__.py @@ -353,7 +353,7 @@ def process_multipart_post(): frontmatter["photo"].append(photo_url) - docstr += f'\n\n' + #docstr += f'\n\n' 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"\"{photo[1]}\" \n\n {doc['content']}" + #for photo in photo_objects: + # docstr += f"\"{photo[1]}\" \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'{photo[1]} \n\n' + #for photo in photo_objects: + # docstr += f'{photo[1]} \n\n' for content in props.get("content", []):