def init_hackathon_storage():
    from hackathon.storage import AzureStorage, LocalStorage

    storage_type = safe_get_config("storage.type", "azure")
    if storage_type == "azure":
        # init BlobServiceAdapter first since AzureStorage depends on it. And accountKey must be included in config file
        from hackathon.hazure import BlobServiceAdapter
        factory.provide("azure_blob_service", BlobServiceAdapter)
        factory.provide("storage", AzureStorage)
    else:
        factory.provide("storage", LocalStorage)
Add storage implementation to hackathon factory
dataset/ETHPy150Open msopentechcn/open-hackathon/open-hackathon-server/src/hackathon/__init__.py/init_hackathon_storage