thumb
km0 1 year ago
parent d8cf4f808d
commit 688483a9b8

@ -136,11 +136,12 @@ def pull():
if request.method == 'POST':
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:
f.write(request.form['payload'])
print(request.form['payload'])
render_home()
print(request.form['payload'])
return 'Updated'
return 'GET method not supported'

Loading…
Cancel
Save