fix tag renaming not updating ui sidebar

This commit is contained in:
dave 2019-11-14 21:29:12 -08:00
parent 06dea40d24
commit 17441b5bd5
4 changed files with 1560 additions and 22 deletions

View File

@ -1,17 +1,11 @@
build/ .DS_Store
cache/ .git
dist/
dropbox/
library/
node_modules/ node_modules/
photoapp.egg-info/ photoapp.egg-info/
photos.db
styles/css/ styles/css/
styles/dist/ styles/dist/
styles/mincss/ styles/mincss/
testenv/ testenv/
source/ test_data/
source_copy/ photolib.sublime-project
raws/ photolib.sublime-workspace
*.sql
vidtest/

14
.gitignore vendored
View File

@ -1,17 +1,11 @@
.DS_Store
__pycache__ __pycache__
build/
cache/
dist/
dropbox/
library/
node_modules/ node_modules/
photoapp.egg-info/ photoapp.egg-info/
photos.db
styles/css/ styles/css/
styles/dist/ styles/dist/
styles/mincss/ styles/mincss/
testenv/ testenv/
cache test_data/
dropbox photolib.sublime-project
library photolib.sublime-workspace
tools/

1549
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -406,7 +406,8 @@ class TagView(object):
for photo in db.query(PhotoSet).join(TagItem).join(Tag).filter(Tag.id == tag.id).all(): for photo in db.query(PhotoSet).join(TagItem).join(Tag).filter(Tag.id == tag.id).all():
photo.status = PhotoStatus.private photo.status = PhotoStatus.private
elif op == "Save": elif op == "Save":
tag.title = title tag.title = title.capitalize()
tag.name = title
tag.description = description tag.description = description
tag.slug = slugify(title) tag.slug = slugify(title)
else: else: