summaryrefslogtreecommitdiff
path: root/fbin-scanner.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2020-10-29 19:45:05 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2020-10-29 19:45:05 +0100
commit2498f142782e26681c542dfca4b3f9fc4ff64808 (patch)
tree24d63a549fd0a4d4ab039d3b0924f8c611d439c2 /fbin-scanner.py
parentb1ed551c3125278d14a69750fea2bfe39cf68530 (diff)
Clean up leftover file path references
This change removes and direct references to the filesystem from the pyfbin code other that file_storage.filesystem. This should hopyfully be the last changes needed for pyfbin to be successfully run using the file_storage.s3 module without any issues.
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)