forked from ppfun/pixelplanet
fix historyDownload
This commit is contained in:
parent
2f13771dba
commit
837b1de613
|
@ -135,7 +135,7 @@ async def get_area(canvas, x, y, w, h, start_date, end_date):
|
||||||
#frames.append(image.copy())
|
#frames.append(image.copy())
|
||||||
image.save('./timelapse/t%s.png' % (cnt))
|
image.save('./timelapse/t%s.png' % (cnt))
|
||||||
while True:
|
while True:
|
||||||
async with session.get('https://pixelplanet.fun/api/history?day=%s&id=%s' % (iter_date, canvas_id)) as resp:
|
async with session.get('https://pixelplanet.fun/history?day=%s&id=%s' % (iter_date, canvas_id)) as resp:
|
||||||
try:
|
try:
|
||||||
time_list = json.loads(await resp.text())
|
time_list = json.loads(await resp.text())
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue
Block a user