Make sure easybake uses the normalized name in return notes.
This commit is contained in:
		
							parent
							
								
									24b6970617
								
							
						
					
					
						commit
						cc0c847eb5
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -929,6 +929,8 @@ class Tag(ObjectBase, GroupableMixin): | ||||||
|             self.photodb.log.debug('Committing - add synonym') |             self.photodb.log.debug('Committing - add synonym') | ||||||
|             self.photodb.commit() |             self.photodb.commit() | ||||||
| 
 | 
 | ||||||
|  |         return synname | ||||||
|  | 
 | ||||||
|     def convert_to_synonym(self, mastertag, *, commit=True): |     def convert_to_synonym(self, mastertag, *, commit=True): | ||||||
|         ''' |         ''' | ||||||
|         Convert this tag into a synonym for a different tag. |         Convert this tag into a synonym for a different tag. | ||||||
|  |  | ||||||
|  | @ -1354,8 +1354,9 @@ class PhotoDB(PDBAlbumMixin, PDBBookmarkMixin, PDBPhotoMixin, PDBTagMixin, PDBUs | ||||||
| 
 | 
 | ||||||
|         if rename_to: |         if rename_to: | ||||||
|             tag = self.get_tag(tag) |             tag = self.get_tag(tag) | ||||||
|             note = ('rename', '%s=%s' % (tag.name, rename_to)) |             old_name = tag.name | ||||||
|             tag.rename(rename_to) |             tag.rename(rename_to) | ||||||
|  |             note = ('rename', '%s=%s' % (old_name, tag.name)) | ||||||
|             output_notes.append(note) |             output_notes.append(note) | ||||||
|         else: |         else: | ||||||
|             tag_parts = tag.split('.') |             tag_parts = tag.split('.') | ||||||
|  | @ -1370,7 +1371,7 @@ class PhotoDB(PDBAlbumMixin, PDBBookmarkMixin, PDBPhotoMixin, PDBTagMixin, PDBUs | ||||||
|             tag = tags[-1] |             tag = tags[-1] | ||||||
| 
 | 
 | ||||||
|         if synonym: |         if synonym: | ||||||
|             tag.add_synonym(synonym) |             synonym = tag.add_synonym(synonym) | ||||||
|             note = ('new_synonym', '%s+%s' % (tag.name, synonym)) |             note = ('new_synonym', '%s+%s' % (tag.name, synonym)) | ||||||
|             output_notes.append(note) |             output_notes.append(note) | ||||||
|             print('New syn %s' % synonym) |             print('New syn %s' % synonym) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue