mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 20:11:30 +00:00
Added debug entry
This commit is contained in:
parent
f9260fd1d0
commit
0f9947a274
6
main.py
6
main.py
|
@ -19,10 +19,10 @@ def getDkimKey():
|
||||||
domain = domain.rstrip("\n")
|
domain = domain.rstrip("\n")
|
||||||
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 = str(dkim, "utf-8")
|
#dkim = str(dkim, "utf-8")
|
||||||
dkim = base64.b64encode(dkim)
|
#dkim = base64.b64encode(dkim)
|
||||||
print(dkim)
|
print(dkim)
|
||||||
return jsonify(dkim)
|
return "0"
|
||||||
@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