When thumbnailing, don't call relative_to on return.
The path given by make_thumbnail_filepath will already have it in the right place, so this is probably an accident waiting to happen.
This commit is contained in:
		
							parent
							
								
									25a27e6241
								
							
						
					
					
						commit
						de48105e32
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -826,7 +826,7 @@ class Photo(ObjectBase): | |||
| 
 | ||||
|         if return_filepath != self.thumbnail: | ||||
|             if return_filepath is not None: | ||||
|                 return_filepath = return_filepath.relative_to(self.photodb.thumbnail_directory) | ||||
|                 return_filepath = return_filepath.absolute_path | ||||
|             data = { | ||||
|                 'id': self.id, | ||||
|                 'thumbnail': return_filepath, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue