thumb
km0 2 years ago
parent d8cf4f808d
commit 688483a9b8

@ -136,11 +136,12 @@ def pull():
if request.method == 'POST': if request.method == 'POST':
subprocess.call(['sh', '/home/kamo/public_html/update.sh']) subprocess.call(['sh', '/home/kamo/public_html/update.sh'])
print('Request for rendering')
render_home()
with open('/home/kamo/public_html/log.txt', 'a') as f: with open('/home/kamo/public_html/log.txt', 'a') as f:
f.write(request.form['payload']) f.write(request.form['payload'])
print(request.form['payload']) print(request.form['payload'])
render_home()
return 'Updated' return 'Updated'
return 'GET method not supported' return 'GET method not supported'

Loading…
Cancel
Save