Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
f85bdc55
Commit
f85bdc55
authored
Aug 14, 2018
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small bugs in UI
parent
a350ed9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
main.py
comm/server/main.py
+2
-1
pynq-manager.js
comm/server/static/js/pynq-manager.js
+9
-10
No files found.
comm/server/main.py
View file @
f85bdc55
...
...
@@ -115,13 +115,14 @@ def post():
_qname
=
request
.
form
[
"qname"
]
_answer
=
request
.
form
[
"answer"
]
_client
=
request
.
form
[
"client"
]
receive_time
=
datetime
.
datetime
.
now
()
receive_time_str
=
receive_time
.
strftime
(
"
%
Y
%
m
%
d
%
H
%
M
%
S"
)
dat
=
{
"req_id"
:
request
.
form
[
'req_id'
],
"client"
:
request
.
form
[
'client'
]
,
"client"
:
_client
,
"answer"
:
_answer
,
"cputime"
:
request
.
form
[
'cputime'
],
"timestamp"
:
receive_time
.
strftime
(
"
%
Y/
%
m/
%
d
%
H:
%
M:
%
S"
)
...
...
comm/server/static/js/pynq-manager.js
View file @
f85bdc55
...
...
@@ -121,16 +121,6 @@ $(function(){
}).
done
(
function
(
d
){
$
(
"#client-control-pane"
).
html
(
""
);
$
(
"#client-control-pane"
).
html
(
d
);
$
.
ajax
({
type
:
"GET"
,
dataType
:
"json"
,
url
:
"/get_clients"
}).
done
(
function
(
d
){
pynqClients
=
d
;
pm
=
PynqManager
(
pynqClients
);
pm
.
getStatus
();
});
});
}
...
...
@@ -162,4 +152,13 @@ $(function(){
refresh_question_table
();
$
.
ajax
({
type
:
"GET"
,
dataType
:
"json"
,
url
:
"/get_clients"
}).
done
(
function
(
d
){
pynqClients
=
d
;
pm
=
PynqManager
(
pynqClients
);
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment