very big Bad commit :) - adding old created files
[findit] / src / searchfile.py
old mode 100644 (file)
new mode 100755 (executable)
index 5b663d6..e128396
@@ -5,8 +5,8 @@
 
 class SearchFile(object):
 
-    def __init__(self, input, config, result):
-        self.path, self.count = input.get_st_par()
+    def __init__(self, vvod, config, result):
+        self.path, self.count = vvod.get_st_par()
         if not self.path:
             self.path = config.get("default_start_dir")
         if not self.count:
@@ -25,4 +25,4 @@ class SearchFile(object):
     def run(self):
         import heapq
         for fsize, fpath in heapq.nlargest(self.count, self.filesorter(self.path)):
-            self.result.add(fpath, fsize)
+            self.result.add((fpath, fsize))
\ No newline at end of file