Force minutes in photo.duration_string.

This commit is contained in:
voussoir 2022-10-29 14:21:25 -07:00
parent 35dbdd27cf
commit 92405e0677
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -1070,7 +1070,7 @@ class Photo(ObjectBase):
def duration_string(self) -> typing.Optional[str]:
if self.duration is None:
return None
return hms.seconds_to_hms(self.duration)
return hms.seconds_to_hms(self.duration, force_minutes=True)
@decorators.required_feature('photo.generate_thumbnail')
@worms.atomic