Skip to content

Commit

Permalink
Issue 1928 (#1931)
Browse files Browse the repository at this point in the history
* Fix ScaleFile.objects.filter_files ingest time and mime type filters

* apply fix recommend by jarred in gitlab issue
  • Loading branch information
bernardfazziniais authored Nov 22, 2021
1 parent 5173d5b commit ee9d2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scale/ingest/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,8 @@ def is_there_rule_match(self, file_handler, workspaces, no_match_status=None):

matched = True
logger.info('Applying rules to %s (%s, %s)',
self.file_name, self.media_type, file_size_to_string(self.file_size))
matched_rule = file_handler.match_file_name(self.file_name)
self.file_path, self.media_type, file_size_to_string(self.file_size))
matched_rule = file_handler.match_file_name(self.file_path)
if matched_rule:
for data_type_tag in matched_rule.data_types:
self.add_data_type_tag(data_type_tag)
Expand Down

0 comments on commit ee9d2bb

Please # to comment.