Let normalize_tagset handle given individual tag objects.
This commit is contained in:
		
							parent
							
								
									c591997b10
								
							
						
					
					
						commit
						8a44c8ec2e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -490,6 +490,9 @@ def normalize_tagset(photodb, tags, warning_bag=None): | ||||||
|     if not tags: |     if not tags: | ||||||
|         return None |         return None | ||||||
| 
 | 
 | ||||||
|  |     if isinstance(tags, objects.Tag): | ||||||
|  |         tags = {tags} | ||||||
|  | 
 | ||||||
|     if isinstance(tags, str): |     if isinstance(tags, str): | ||||||
|         tags = stringtools.comma_space_split(tags) |         tags = stringtools.comma_space_split(tags) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue