fix a bug
This commit is contained in:
parent
8bc08d18d3
commit
4d43438a4d
@ -13,7 +13,7 @@ async def get_news() -> List[New]:
|
|||||||
return []
|
return []
|
||||||
data = data.json()
|
data = data.json()
|
||||||
data = [New(**i) for i in data.get("result", [])]
|
data = [New(**i) for i in data.get("result", [])]
|
||||||
update_time = 0
|
update_time = time
|
||||||
for new in data:
|
for new in data:
|
||||||
if new.publish_time > update_time:
|
if new.publish_time > update_time:
|
||||||
update_time = new.publish_time
|
update_time = new.publish_time
|
||||||
|
Loading…
Reference in New Issue
Block a user