Skip to content
Snippets Groups Projects
Commit ce28f49c authored by wactbprot's avatar wactbprot
Browse files

play with ssmp

parent f020cfcf
No related branches found
No related tags found
No related merge requests found
......@@ -77,12 +77,18 @@ class System:
def dget(self, key_prefix, line):
v = self.aget(key_prefix, line)
return json.loads(v)
if v:
return json.loads(v)
else:
return None
def fget(self, key_prefix, line):
v = self.aget(key_prefix, line)
return float(v)
if v:
return float(v)
else:
return None
def now(self):
return datetime.datetime.now().isoformat().replace('T', ' ')
......@@ -23,7 +23,7 @@ def calids():
s.log.info("request cal ids")
return jsonify({"calids":calids })
return jsonify({"ids":calids })
@app.route('/dut_max', methods=['GET'])
def dut_max():
......
......@@ -3,4 +3,4 @@ export FLASK_APP=srv.py
export FLASK_DEBUG=1
export FLASK_ENV=development
flask run --host=0.0.0.0
flask run --host=0.0.0.0 --port=50005
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment