mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-11-04 12:03:36 +00:00 
			
		
		
		
	Merge pull request #4273 from Omegastick/ordered_hypernetworks
Sort hypernetworks list
This commit is contained in:
		
						commit
						cb84a304f0
					
				@ -243,7 +243,7 @@ class Hypernetwork:
 | 
			
		||||
 | 
			
		||||
def list_hypernetworks(path):
 | 
			
		||||
    res = {}
 | 
			
		||||
    for filename in glob.iglob(os.path.join(path, '**/*.pt'), recursive=True):
 | 
			
		||||
    for filename in sorted(glob.iglob(os.path.join(path, '**/*.pt'), recursive=True)):
 | 
			
		||||
        name = os.path.splitext(os.path.basename(filename))[0]
 | 
			
		||||
        # Prevent a hypothetical "None.pt" from being listed.
 | 
			
		||||
        if name != "None":
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user