refaktorálás javításai

This commit is contained in:
Roo
2026-03-13 10:22:41 +00:00
parent 2d8d23f469
commit f53e0b53df
140 changed files with 7316 additions and 4579 deletions

View File

@@ -26,23 +26,23 @@ logger = logging.getLogger("Seed-Catalog")
async def quick_seed():
""" Katalógus és Discovery adatok inicializálása. """
async with AsyncSessionLocal() as db:
logger.info("🚀 Katalógus alapozás indítása...")
try:
# 1. Felderítendő Városok (DiscoveryParameter)
# A Scout robot ezekben a városokban kezdi meg a szervizek kutatását.
cities = [
("BUDAPEST", "HU"),
("DEBRECEN", "HU"),
("GYŐR", "HU"),
("SZEGED", "HU")
]
for city_name, country in cities:
async with AsyncSessionLocal() as db:
logger.info("🚀 Katalógus alapozás indítása...")
try:
# 1. Felderítendő Városok (DiscoveryParameter)
# A Scout robot ezekben a városokban kezdi meg a szervizek kutatását.
cities = [
("BUDAPEST", "HU"),
("DEBRECEN", "HU"),
("GYŐR", "HU"),
("SZEGED", "HU")
]
for city_name, country in cities:
db.add(DiscoveryParameter(
city=city_name,
country_code=country,
city=city_name,
keyword=country,
is_active=True
))