Add git pull acknowledge statement

This commit is contained in:
Didier Slof 2022-12-18 23:49:48 +01:00
parent 89750c97e7
commit d6c21ba3cb
Signed by: didier
GPG key ID: 01E71F18AA4398E5

View file

@ -15,6 +15,7 @@ class handler(BaseHTTPRequestHandler):
subprocess.call(['git', 'pull'])
with open('./lib/deploy.sh') as f:
self.wfile.write(bytes(f.read(), 'utf-8'))
self.wfile.write(bytes("# Git pull: " + str(time.time() - os.path.getmtime('./lib/deploy.sh')) + " seconds ago", 'utf-8'))
def main():