1
0
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:
Virgil Dupras
2011-11-27 13:10:35 -05:00
parent fca66d5108
commit fc5a0d914b
13 changed files with 11 additions and 18 deletions

View File

@@ -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

View File

@@ -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'}