|
@@ -5,9 +5,9 @@ from model import DingTalkUtils
|
|
|
|
|
|
class SrcBookInfo(BaseHandler):
|
|
|
def get(self):
|
|
|
- val= os.system('source ~/.bashrc && /root/.local/share/virtualenvs/DataCenter-EjFsiCkN/bin/python /root/DataCenter/app/etl/src/src_book_info.py')
|
|
|
- self.write('ok')
|
|
|
- DingTalkUtils.send('DataCenter任务刷新:' +'scccess' if int(val)==0 else 'fail')
|
|
|
+ val= os.popen('source ~/.bashrc && /root/.local/share/virtualenvs/DataCenter-EjFsiCkN/bin/python /root/DataCenter/app/etl/src/src_book_info.py')
|
|
|
+ self.write(val)
|
|
|
+ DingTalkUtils.send('DataCenter任务刷新:'+val)
|
|
|
|
|
|
|
|
|
|