Skip to content
Snippets Groups Projects
Verified Commit f9e5f072 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Pipeline requirements.

parent 658e35da
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!38MAINT: Linting tests run through now.
Pipeline #21171 failed
...@@ -48,13 +48,14 @@ class ExampleCFoodMeal(AbstractFileCFood, CMeal): ...@@ -48,13 +48,14 @@ class ExampleCFoodMeal(AbstractFileCFood, CMeal):
CMeal.__init__(self) CMeal.__init__(self)
@classmethod @classmethod
def match_item(cls, item): def match_item(cls, path):
""" standard match_match, but returns False if a suitable cfood exists """ """ standard match_match, but returns False if a suitable cfood exists """
if cls.has_suitable_cfood(item): print(path)
if cls.has_suitable_cfood(path):
return False return False
return re.match(cls.get_re(), item) is not None return re.match(cls.get_re(), path) is not None
def looking_for(self, crawled_file): def looking_for(self, crawled_file):
""" standard looking_for, but returns True if the file matches all """ standard looking_for, but returns True if the file matches all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment