Fix NameError during set_override_filename.

This commit is contained in:
voussoir 2020-09-20 13:43:02 -07:00
parent f8e03bed21
commit 55e66c8656

View file

@ -1153,7 +1153,7 @@ class Photo(ObjectBase):
'override_filename': new_filename, 'override_filename': new_filename,
} }
self.photodb.sql_update(table='photos', pairs=data, where_key='id') self.photodb.sql_update(table='photos', pairs=data, where_key='id')
self.basename = override_filename self.basename = new_filename
self.__reinit__() self.__reinit__()