1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Corrected which property was called

This commit is contained in:
Phxntxm 2016-10-29 15:56:53 -05:00
parent 01acaa3e51
commit e318c27413

View file

@ -72,7 +72,7 @@ class VoiceEntry:
def __str__(self):
fmt = '*{0.title}* uploaded by {0.uploader} and requested by {1.display_name}'
duration = self.player.length
duration = self.length
if duration:
fmt += ' [length: {0[0]}m {0[1]}s]'.format(divmod(round(duration, 0), 60))
return fmt.format(self.player, self.requester)