default args

This commit is contained in:
Emmanuel Viennet 2021-09-18 17:52:33 +02:00
parent 71e4f6c9c7
commit 11ea527986

View File

@ -136,12 +136,12 @@ def increment():
@bp.route("/version", methods=["GET"])
def version():
"""
echo -e "DATE\tIP\tSVN\tSERIAL\tOP" > installs.log; chown www-data installs.log
echo -e "DATE\tIP\tSVN\tSERIAL\tOP" > installs.log; chown scodoc installs.log
"""
mode = request.args.get("mode", "?")
sn = request.args.get("sn", "") # serial number
svn = request.args.get("svn", "") # installed subversion
commit = request.args.get("commit", "") # installed git commit
sn = request.args.get("sn", "-1") # serial number
svn = request.args.get("svn", "-") # installed subversion
commit = request.args.get("commit", "-") # installed git commit
if mode == "install" or not sn:
serial = increment()
else: