From e2324cd0960809cdfde827f475e294a073b67fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Sat, 13 Apr 2024 13:40:44 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20=E6=94=B9=E9=80=B2=20NRD=20?= =?UTF-8?q?=E4=B8=8B=E8=BC=89=E6=95=88=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/nrdlist.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AutoBuild/nrdlist.py b/AutoBuild/nrdlist.py index a3f06b9..f2cfb4c 100644 --- a/AutoBuild/nrdlist.py +++ b/AutoBuild/nrdlist.py @@ -61,12 +61,12 @@ class Downloader: today = arrow.utcnow() task = [] - for i in range(1, 30): - date = today.shift(days=-i) - task.append(loop.create_task(self.fetch(date))) - loop.run_until_complete(asyncio.gather(*task)) + for i in range(1, 30, 5): + for j in range(i, i + 5): + date = today.shift(days=-j) + task.append(loop.create_task(self.fetch(date))) + loop.run_until_complete(asyncio.gather(*task)) asyncio.run(self.write()) - if __name__ == "__main__": Downloader().run()