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/
cache/
dist/
dropbox/
library/
.DS_Store
.git
node_modules/
photoapp.egg-info/
photos.db
styles/css/
styles/dist/
styles/mincss/
testenv/
source/
source_copy/
raws/
*.sql
vidtest/
test_data/
photolib.sublime-project
photolib.sublime-workspace

14
.gitignore vendored
View File

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

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():
photo.status = PhotoStatus.private
elif op == "Save":
tag.title = title
tag.title = title.capitalize()
tag.name = title
tag.description = description
tag.slug = slugify(title)
else: