diff --git a/jobs/jianshu/user_assets_ranking.py b/jobs/jianshu/user_assets_ranking.py index 18f41dc..e898113 100644 --- a/jobs/jianshu/user_assets_ranking.py +++ b/jobs/jianshu/user_assets_ranking.py @@ -95,7 +95,7 @@ async def main() -> None: data.append(processed_item) # TODO - if len(data) == 1000: # noqa: PLR2004 + if len(data) == 1000: break await DbAssetsRankingRecord.insert_many(data) diff --git a/pyproject.toml b/pyproject.toml index 3a5b8b8..a5c6647 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,7 @@ lint.select = [ lint.ignore = [ "ISC001", "PERF203", + "PLR2004", "RUF001", "RUF002", "RUF003",