fix(api): 修复添加下厨房菜谱通知失败的问题
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4c76880cde
commit
50cd69f378
2
app.py
2
app.py
@ -484,7 +484,7 @@ def consume_stream():
|
||||
resp, status_code, recipe_name = add_recipe_from_url(msg['url'])
|
||||
if status_code == 200:
|
||||
r.xack(STREAM_KEY, CONSUMER_GROUP, msg_id)
|
||||
bark_push(f'{recipe_name} 添加成功')
|
||||
bark_push(f'{recipe_name} 添加成功', f'地址 {msg["url"]}')
|
||||
else:
|
||||
logger.error(f"Failed to process message: {msg['url']} {resp}")
|
||||
bark_push('食谱添加失败', '%s 来源 %s' % (resp['message'], msg['url']))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user