fix a bug

This commit is contained in:
xtaodada 2022-08-02 21:40:57 +08:00
parent 7aa17bce4c
commit 8bc08d18d3
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -1,3 +1,4 @@
import time as time_
from typing import List
from ci import client, sqlite
@ -5,7 +6,7 @@ from defs.model import New
async def get_news() -> List[New]:
time = sqlite.get("update_time", 0)
time = sqlite.get("update_time", time_.time() - 600)
url = f"https://papi.jiemian.com/page/api/kuaixun/getLastest?cid=1325kb&end_time={time}&tagid=1325"
data = await client.get(url)
if data.status_code != 200: