Skip to content

Commit

Permalink
pequenas alterações. #8
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyvitor11000 committed Mar 2, 2023
1 parent 293221a commit 5b9097e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
14 changes: 0 additions & 14 deletions src/Scraper/domain/category_url.py

This file was deleted.

21 changes: 13 additions & 8 deletions src/Scraper/domain/entity.py
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)
1 change: 0 additions & 1 deletion src/SearchEngine/domain/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from framework.domain.repository import AbstractRepository
from framework.domain.exception import DomainException
from framework.domain.components import Component
from Scraper.domain.aggragate import VolatileData


@dataclass
Expand Down

0 comments on commit 5b9097e

Please sign in to comment.