1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

[#138] Completed re-prioritization workflow, now all that is needed is to add more criteria, handle corner case and build the GUI for it.

This commit is contained in:
Virgil Dupras
2011-09-08 12:36:57 -04:00
parent 518228a368
commit 9c30486f14
4 changed files with 42 additions and 4 deletions

View File

@@ -29,6 +29,9 @@ class Criterion:
self.category = category
self.value = value
def test_dupe(self, dupe):
return self.category._extract_value(dupe) == self.value
@property
def display(self):
return "{} ({})".format(self.category, self.value)