fix a bug
This commit is contained in:
parent
7aa17bce4c
commit
8bc08d18d3
@ -1,3 +1,4 @@
|
|||||||
|
import time as time_
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from ci import client, sqlite
|
from ci import client, sqlite
|
||||||
@ -5,7 +6,7 @@ from defs.model import New
|
|||||||
|
|
||||||
|
|
||||||
async def get_news() -> List[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"
|
url = f"https://papi.jiemian.com/page/api/kuaixun/getLastest?cid=1325kb&end_time={time}&tagid=1325"
|
||||||
data = await client.get(url)
|
data = await client.get(url)
|
||||||
if data.status_code != 200:
|
if data.status_code != 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user