Compare commits
2 Commits
54944244ae
...
46332e1921
Author | SHA1 | Date | |
---|---|---|---|
46332e1921 | |||
57069c2b69 |
13
src/layers/dedupe.py
Normal file
13
src/layers/dedupe.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
from pathlib import Path
|
||||||
|
from dir import Root
|
||||||
|
from layer import Layer
|
||||||
|
|
||||||
|
|
||||||
|
class Dedupe(Layer):
|
||||||
|
def __init__(self, other: Root, log_path: Path):
|
||||||
|
super().__init__(log_path, "TCD")
|
||||||
|
self.other = other
|
||||||
|
|
||||||
|
|
||||||
|
def __process(self, root: Root):
|
||||||
|
pass
|
|
@ -1,9 +1,13 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from dir import Root
|
from dir import Root
|
||||||
|
from log import Log, LogCat
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
class Layer(ABC):
|
class Layer(ABC):
|
||||||
def __init__(self):
|
def __init__(self, log_path: Path, log_category: str):
|
||||||
pass
|
self.log_path = log_path
|
||||||
|
self.__log = Log(log_path)
|
||||||
|
self.log = LogCat(self.__log.queue, log_category)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def __process(self, root: Root):
|
def __process(self, root: Root):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user