Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Automat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冯佳佳
Automat
Commits
e8df6945
Commit
e8df6945
authored
Nov 26, 2021
by
Aeolus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1332af34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
myapps/sukang24h/api/machine_portal.py
+1
-1
No files found.
myapps/sukang24h/api/machine_portal.py
View file @
e8df6945
...
@@ -89,6 +89,6 @@ def run_get_machine_no():
...
@@ -89,6 +89,6 @@ def run_get_machine_no():
machine
=
Machine
.
query
.
filter_by
(
qrcode_no
=
qrcode_no
)
.
first
()
machine
=
Machine
.
query
.
filter_by
(
qrcode_no
=
qrcode_no
)
.
first
()
if
machine
:
if
machine
:
return
BaseResponse
(
data
=
{
"machine_no"
:
machine
.
machine_no
,
"status"
:
machine
.
status
,
"mac_no"
:
machine
.
mac
,
return
BaseResponse
(
data
=
{
"machine_no"
:
machine
.
machine_no
,
"status"
:
machine
.
status
,
"mac_no"
:
machine
.
mac
,
"command_time"
:
machine
.
command_tim
e
})
"command_time"
:
machine
.
command_time
,
"type"
:
machine
.
typ
e
})
else
:
else
:
return
jsonify
(
MACHINE_NOT_EXIST_ERROR
)
return
jsonify
(
MACHINE_NOT_EXIST_ERROR
)
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