mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Moved DELTA_COLUMNS from app to result_table.
This commit is contained in:
@@ -16,7 +16,6 @@ from .result_table import ResultTable
|
||||
|
||||
class DupeGuru(DupeGuruBase):
|
||||
NAME = __appname__
|
||||
DELTA_COLUMNS = {'size', 'duration', 'bitrate', 'samplerate', 'mtime'}
|
||||
METADATA_TO_READ = ['size', 'mtime', 'duration', 'bitrate', 'samplerate', 'title', 'artist',
|
||||
'album', 'genre', 'year', 'track', 'comment']
|
||||
|
||||
@@ -74,7 +73,7 @@ class DupeGuru(DupeGuruBase):
|
||||
if key == 'dupe_count':
|
||||
return 0
|
||||
r = cmp_value(dupe, key)
|
||||
if delta and (key in self.DELTA_COLUMNS):
|
||||
if delta and (key in self.result_table.DELTA_COLUMNS):
|
||||
r -= cmp_value(get_group().ref, key)
|
||||
return r
|
||||
|
||||
|
||||
@@ -34,3 +34,4 @@ class ResultTable(ResultTableBase):
|
||||
Column('words', coltr("Words Used"), visible=False, optional=True),
|
||||
Column('dupe_count', coltr("Dupe Count"), visible=False, optional=True),
|
||||
]
|
||||
DELTA_COLUMNS = {'size', 'duration', 'bitrate', 'samplerate', 'mtime'}
|
||||
|
||||
Reference in New Issue
Block a user