-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
293221a
commit 5b9097e
Showing
3 changed files
with
13 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
from dataclasses import dataclass | ||
|
||
from framework.domain.entity import Entity | ||
from framework.domain.value_object import URL | ||
from framework.domain.components import EComponentType | ||
|
||
|
||
@dataclass | ||
class MatchesTrackedComponent(Rule): | ||
# Verifica se o componente é um dos componentes observados | ||
component_name: str | ||
|
||
def is_broken(self) -> bool: | ||
# verificar se componente existe | ||
# return not SearchEngine.get_id_by_name(component_name) | ||
return False | ||
class CategoryURL(Entity): | ||
url: URL | ||
category: EComponentType | ||
|
||
def __hash__(self): | ||
return hash(self.uid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters