gui.py sameDuration check: round for formatTime consistency
This commit is contained in:
parent
4fd210a076
commit
9cf76b28fc
@ -54,7 +54,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
if (currentUser.file):
|
if (currentUser.file):
|
||||||
sameName = stripfilename(user.file['name']) == stripfilename(currentUser.file['name'])
|
sameName = stripfilename(user.file['name']) == stripfilename(currentUser.file['name'])
|
||||||
sameSize = user.file['size'] == currentUser.file['size']
|
sameSize = user.file['size'] == currentUser.file['size']
|
||||||
sameDuration = abs(int(user.file['duration']) - int(currentUser.file['duration'])) < constants.DIFFFERENT_DURATION_THRESHOLD
|
sameDuration = abs(round(user.file['duration']) - round(currentUser.file['duration'])) < constants.DIFFFERENT_DURATION_THRESHOLD
|
||||||
sameRoom = room == currentUser.room
|
sameRoom = room == currentUser.room
|
||||||
differentName = not sameName
|
differentName = not sameName
|
||||||
differentSize = not sameSize
|
differentSize = not sameSize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user