mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Added debug entry
This commit is contained in:
parent
b82a5fe3d0
commit
57b3cebe0a
3
main.py
3
main.py
|
@ -20,7 +20,8 @@ def getDkimKey():
|
||||||
catProcess = subprocess.Popen(["cat", "/var/dkim/" + domain + ".selector.txt"], stdout=subprocess.PIPE)
|
catProcess = subprocess.Popen(["cat", "/var/dkim/" + domain + ".selector.txt"], stdout=subprocess.PIPE)
|
||||||
dkim = catProcess.communicate()[0]
|
dkim = catProcess.communicate()[0]
|
||||||
dkim = base64.b64encode(dkim)
|
dkim = base64.b64encode(dkim)
|
||||||
return jsonify(dkim)
|
print(dkim)
|
||||||
|
return "1" #jsonify(dkim)
|
||||||
@app.route("/pythonVersion", methods=["GET"])
|
@app.route("/pythonVersion", methods=["GET"])
|
||||||
def getPythonVersion():
|
def getPythonVersion():
|
||||||
pythonVersion = subprocess.check_output(["python","--version"])
|
pythonVersion = subprocess.check_output(["python","--version"])
|
||||||
|
|
Loading…
Reference in a new issue