mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Fixes the returning of a set, change to a list instead (#4442)
This commit is contained in:
		
							parent
							
								
									d480e91196
								
							
						
					
					
						commit
						cb271deb8f
					
				@ -32,7 +32,7 @@ except ImportError:  # pragma: nocover
 | 
			
		||||
logger = logging.getLogger("paperless.management.consumer")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def _tags_from_path(filepath) -> set[Tag]:
 | 
			
		||||
def _tags_from_path(filepath) -> list[int]:
 | 
			
		||||
    """
 | 
			
		||||
    Walk up the directory tree from filepath to CONSUMPTION_DIR
 | 
			
		||||
    and get or create Tag IDs for every directory.
 | 
			
		||||
@ -47,7 +47,7 @@ def _tags_from_path(filepath) -> set[Tag]:
 | 
			
		||||
            Tag.objects.get_or_create(name__iexact=part, defaults={"name": part})[0].pk,
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    return tag_ids
 | 
			
		||||
    return list(tag_ids)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def _is_ignored(filepath: str) -> bool:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user