diff --git a/README.md b/README.md index 3cc53bc..5bf979e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Etiquette is a tag-based file organization system with a web front-end. Documentation is still a work in progress. In general, I use: -- `python etiquette_site_launch.py [port]` to launch the flask server. Port defaults to 5000 if not provided. +- `python etiquette_flask_launch.py [port]` to launch the flask server. Port defaults to 5000 if not provided. - `python -i etiquette_repl.py` to launch the Python interpreter with the PhotoDB pre-loaded into a variable called `P`. Try things like `P.new_photo` or `P.digest_directory`. ### To do list diff --git a/frontends/etiquette_flask/etiquette_flask/etiquette_flask.py b/frontends/etiquette_flask/etiquette_flask/etiquette_flask.py index b44eada..edf4905 100644 --- a/frontends/etiquette_flask/etiquette_flask/etiquette_flask.py +++ b/frontends/etiquette_flask/etiquette_flask/etiquette_flask.py @@ -19,7 +19,7 @@ from voussoirkit import pathclass root_dir = pathclass.Path(__file__).parent.parent -print(root_dir) + TEMPLATE_DIR = root_dir.with_child('templates') STATIC_DIR = root_dir.with_child('static') FAVICON_PATH = STATIC_DIR.with_child('favicon.png') diff --git a/frontends/etiquette_flask/templates/photo_card.html b/frontends/etiquette_flask/templates/photo_card.html index 7ca1dfd..067bfa2 100644 --- a/frontends/etiquette_flask/templates/photo_card.html +++ b/frontends/etiquette_flask/templates/photo_card.html @@ -47,9 +47,8 @@
- {% set tags = photo.tags() %} {% set tag_names = [] %} - {% for tag in tags %} + {% for tag in photo.tags() %} {% do tag_names.append(tag.name) %} {% endfor %} {% if tag_names %}