summaryrefslogtreecommitdiff
path: root/fbin-scanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'fbin-scanner.py')
-rw-r--r--fbin-scanner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fbin-scanner.py b/fbin-scanner.py
index 76bc33b..05f8739 100644
--- a/fbin-scanner.py
+++ b/fbin-scanner.py
@@ -83,10 +83,10 @@ def main():
files = deque(db.session.query(File).filter(File.scanned == False).all())
while len(files):
dbfile = files.pop()
- if not dbfile.get_size():
+ if not dbfile.size:
logger.info('Ignoring file %s/%s due to unknown size', dbfile.filename, dbfile.hash)
continue
- if dbfile.get_size() > 32*10**6:
+ if dbfile.size > 32*10**6:
logger.info('Ignoring file %s/%s due to size (%s)', dbfile.filename, dbfile.hash, dbfile.formatted_size)
continue
logger.info('Checking file %s/%s (%s)', dbfile.filename, dbfile.hash, dbfile.formatted_size)