Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
anselm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
anselm
Commits
ce28f49c
Commit
ce28f49c
authored
6 years ago
by
wactbprot
Browse files
Options
Downloads
Patches
Plain Diff
play with ssmp
parent
f020cfcf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
anselm/system.py
+10
-4
10 additions, 4 deletions
anselm/system.py
srv.py
+1
-1
1 addition, 1 deletion
srv.py
srv.sh
+1
-1
1 addition, 1 deletion
srv.sh
with
12 additions
and
6 deletions
anselm/system.py
+
10
−
4
View file @
ce28f49c
...
...
@@ -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
'
,
'
'
)
This diff is collapsed.
Click to expand it.
srv.py
+
1
−
1
View file @
ce28f49c
...
...
@@ -23,7 +23,7 @@ def calids():
s
.
log
.
info
(
"
request cal ids
"
)
return
jsonify
({
"
cal
ids
"
:
calids
})
return
jsonify
({
"
ids
"
:
calids
})
@app.route
(
'
/dut_max
'
,
methods
=
[
'
GET
'
])
def
dut_max
():
...
...
This diff is collapsed.
Click to expand it.
srv.sh
+
1
−
1
View file @
ce28f49c
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment