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:
@@ -15,7 +15,6 @@ from .result_table import ResultTable
|
||||
|
||||
class DupeGuru(DupeGuruBase):
|
||||
NAME = __appname__
|
||||
DELTA_COLUMNS = {'size', 'mtime'}
|
||||
METADATA_TO_READ = ['size', 'mtime']
|
||||
|
||||
def __init__(self, view, appdata):
|
||||
@@ -54,7 +53,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
|
||||
|
||||
|
||||
@@ -24,3 +24,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', 'mtime'}
|
||||
|
||||
Reference in New Issue
Block a user