changxin commited on
Commit
71955cc
1 Parent(s): d8131a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,13 +46,13 @@ def fx_datatable(s:str):
46
  a=exec(s)
47
  return {k: v for k, v in locals().items() if isinstance(v,pd.DataFrame)}
48
 
49
- @(every(2).minutes)
50
  def fx_dd(s:str):
51
  headers= {"Content-Type": "application/json"}
52
  url="https://oapi.dingtalk.com/robot/send?access_token=4cbf5cd82f7d214566af77f893ecc9f119b78f5465d3a8fcbe4734bf73c1a7d8"
53
  data={'msgtype':'text','text':{'title': '吹牛逼',"content": s}, 'at': {'atMobiles': [], 'isAtAll': True}}
54
  response=requests.post(url,json=data,headers=headers)
55
- return response.text
 
56
  while True:
57
  run_pending()
58
  time.sleep(1)
 
46
  a=exec(s)
47
  return {k: v for k, v in locals().items() if isinstance(v,pd.DataFrame)}
48
 
 
49
  def fx_dd(s:str):
50
  headers= {"Content-Type": "application/json"}
51
  url="https://oapi.dingtalk.com/robot/send?access_token=4cbf5cd82f7d214566af77f893ecc9f119b78f5465d3a8fcbe4734bf73c1a7d8"
52
  data={'msgtype':'text','text':{'title': '吹牛逼',"content": s}, 'at': {'atMobiles': [], 'isAtAll': True}}
53
  response=requests.post(url,json=data,headers=headers)
54
+ return response.text
55
+ every(2).minutes.do(fx_dd,s='传参数测试')
56
  while True:
57
  run_pending()
58
  time.sleep(1)