Minor cosmetics
This commit is contained in:
		
							parent
							
								
									824430dfa8
								
							
						
					
					
						commit
						f8a78c6ee7
					
				
					 3 changed files with 3 additions and 4 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
|  | @ -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') | ||||
|  |  | |||
|  | @ -47,9 +47,8 @@ | |||
|             </div> | ||||
|         </div> | ||||
|         <div class="photo_card_grid_file_metadata"> | ||||
|             {% 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 %} | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue