Рефакторинг проекта: разделение на модули, улучшенный интерфейс, обработка Excel
This commit is contained in:
14
models/cadastral_record.py
Normal file
14
models/cadastral_record.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Модель для хранения информации о кадастровом номере.
|
||||
"""
|
||||
|
||||
class CadastralRecord:
|
||||
def __init__(self, number: str, file_path: str):
|
||||
self.number = number
|
||||
self.file_path = file_path
|
||||
|
||||
def __str__(self):
|
||||
return f"Кадастровый номер: {self.number}, файл: {self.file_path}"
|
||||
|
||||
def __repr__(self):
|
||||
return f"CadastralRecord('{self.number}', '{self.file_path}')"
|
||||
Reference in New Issue
Block a user