Fix FTP server initialization - correct config parameter passing and remove type hints
This commit is contained in:
parent
9c91188c09
commit
58db3065a9
@ -81,7 +81,8 @@ def ftp(host: str, port: int):
|
||||
config.ftp_server.host = host
|
||||
config.ftp_server.port = port
|
||||
|
||||
ftp_manager = FTPServerManager(config.ftp_server)
|
||||
# Fix: Pass the correct config object to FTPServerManager
|
||||
ftp_manager = FTPServerManager(config)
|
||||
|
||||
# Add current directory as allowed directory
|
||||
current_dir = os.path.abspath('.')
|
||||
|
||||
@ -15,8 +15,9 @@ from .database import DatabaseManager
|
||||
class FTPServerManager:
|
||||
"""Manages the FTP server for FactsDB service"""
|
||||
|
||||
def __init__(self, config: Config):
|
||||
def __init__(self, config):
|
||||
self.config = config
|
||||
# Fix: Pass database config to DatabaseManager, not the entire config object
|
||||
self.db_manager = DatabaseManager(config.database)
|
||||
self.server = None
|
||||
self.is_running = False
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user