Refactor phototemplate (#788)

* Refactored date code in phototemplate.py

* Refactored date code in phototemplate.py

* Refactored place values in PhotoTemplate

* Refactored place values in PhotoTemplate
This commit is contained in:
Rhet Turnbull
2022-09-04 15:13:59 -07:00
committed by GitHub
parent 9b175d17d6
commit 5391d1059c
3 changed files with 104 additions and 224 deletions

View File

@@ -166,6 +166,7 @@ TEMPLATE_VALUES = {
"{title}": "Glen Ord",
"{title[ ,]}": "GlenOrd",
"{descr}": "Jack Rose Dining Saloon",
"{created}": "2020-02-04",
"{created.date}": "2020-02-04",
"{created.year}": "2020",
"{created.yy}": "20",
@@ -289,6 +290,7 @@ TEMPLATE_VALUES_DEU = {
TEMPLATE_VALUES_DATE_MODIFIED = {
"{name}": "A9B73E13-A6F2-4915-8D67-7213B39BAE9F",
"{original_name}": "IMG_3984",
"{modified}": "2020-10-31",
"{modified.date}": "2020-10-31",
"{modified.year}": "2020",
"{modified.yy}": "20",