mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
尝试解决PTPP历史数据导入时间出错的问题
This commit is contained in:
@@ -386,7 +386,9 @@ class PtSpider:
|
|||||||
'seed_vol': seeding_size,
|
'seed_vol': seeding_size,
|
||||||
'ratio': float(ratio),
|
'ratio': float(ratio),
|
||||||
})
|
})
|
||||||
logger.info('数据导入结果,True为新建,false为更新')
|
res_status[0].created_at = create_time
|
||||||
|
res_status[0].save()
|
||||||
|
logger.info(f'数据导入结果: 日期: {create_time},True为新建,false为更新')
|
||||||
logger.info(res_status)
|
logger.info(res_status)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
msg = '{}{} 数据导入出错,错误原因:{}'.format(site.name, key, traceback.format_exc(limit=3))
|
msg = '{}{} 数据导入出错,错误原因:{}'.format(site.name, key, traceback.format_exc(limit=3))
|
||||||
|
|||||||
Reference in New Issue
Block a user