Commit e14e7b71 authored by 吕先亚's avatar 吕先亚

update

parent 018b69c6
......@@ -91,7 +91,7 @@ async def recommend():
'risk': risk,
'rr': round(sum([id_ticker_map[key]['risk'] * weight for key, weight in funds.items()]), 2), 'cp': cp,
'roi': roi}
note = {'recomman_reason': "推荐理由是:..."}
note = {'recomman_reason': "recommend reason is ..."}
data['note'] = json.dumps(note)
# 计算股债比
stock_weight = int(
......@@ -123,7 +123,7 @@ async def startup_event():
target_time = dt.time(10, 20)
if current_time.time() > target_time:
scheduler.add_job(main.start, trigger=DateTrigger(run_date=current_time))
await send_email()
# await send_email()
# 开启定时任务,执行实盘
scheduler.add_job(main.start, 'cron', day_of_week='0-4', hour=10, minute=20)
scheduler.add_job(send_email, 'cron', day_of_week='0-4', hour=10, minute=25)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment