Skip to content

Commit

Permalink
Merge pull request #33 from CybercentreCanada/use-filesize
Browse files Browse the repository at this point in the history
Use request.task.file_size
  • Loading branch information
cccs-jh authored Sep 19, 2023
2 parents 6b46820 + 9bbb2d6 commit 879d61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frankenstrings/frankenstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def execute(self, request: ServiceRequest) -> None:
bb_max_size = 200000

# Begin analysis
if (len(request.file_contents) or 0) >= max_size or self.sample_type.startswith("archive/"):
if (request.task.file_size or 0) >= max_size or self.sample_type.startswith("archive/"):
# No analysis is done if the file is an archive or too large
return

Expand Down

0 comments on commit 879d61e

Please sign in to comment.