-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
150 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,6 @@ | ||
from models.jianshu.article_earning_ranking_record import ( | ||
ArticleEarningRankingRecord, | ||
) | ||
from models.jianshu.daily_update_ranking_record import DailyUpdateRankingRecord | ||
from models.jianshu.user import User as JianshuUser | ||
from models.jianshu.user_assets_ranking_record import UserAssetsRankingRecord | ||
from models.jpep.credit_record import CreditRecord | ||
from models.jpep.ftn_macket_record import FTNMacketRecord | ||
from models.jpep.ftn_order import FTNOrder | ||
from models.jpep.user import User as JPEPUser | ||
from utils.db import jianshu_pool, jpep_pool | ||
|
||
|
||
async def init_db() -> None: | ||
await jianshu_pool.prepare() | ||
await jpep_pool.prepare() | ||
|
||
await ArticleEarningRankingRecord.init() | ||
await DailyUpdateRankingRecord.init() | ||
await JianshuUser.init() | ||
await UserAssetsRankingRecord.init() | ||
await CreditRecord.init() | ||
await FTNMacketRecord.init() | ||
await FTNOrder.init() | ||
await JPEPUser.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.