Skip to content

Commit

Permalink
fix: ap 未定义
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Oct 24, 2024
1 parent 0c3039a commit 69e4b45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion campux/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ async def create_app() -> Application:

await config.load_config()

ap = Application()

# 迁移
for migration_cls in migration.preregistered_migrations:
migration_inst = migration_cls(ap=ap)
Expand All @@ -108,7 +110,6 @@ async def create_app() -> Application:
cache = cache_mgr.CacheManager()
cache.load()

ap = Application()
ap.cache = cache
ap.meta = meta
ap.config = config
Expand Down

0 comments on commit 69e4b45

Please sign in to comment.