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
8a30c00c
Commit
8a30c00c
authored
Jun 08, 2022
by
于方蒙
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
42230d55
fab34524
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
myapps/pc_management/api/machine_portal.py
+4
-4
No files found.
myapps/pc_management/api/machine_portal.py
View file @
8a30c00c
...
@@ -277,10 +277,10 @@ def run_distribute_tallyman_machine():
...
@@ -277,10 +277,10 @@ def run_distribute_tallyman_machine():
return_machine_no
=
[]
return_machine_no
=
[]
for
i
in
machine_nos
:
for
i
in
machine_nos
:
if
g
.
user
.
level
!=
1
:
# if g.user.level != 1:
admin_machines
=
AdminMachine
.
query
.
filter_by
(
user_id
=
g
.
user
.
id
,
machine_no
=
i
,
status
=
1
)
.
first
()
# admin_machines = AdminMachine.query.filter_by(user_id=g.user.id, machine_no=i, status=1).first()
if
not
admin_machines
:
# if not admin_machines:
continue
# continue
machine
=
Machine
.
query
.
filter_by
(
machine_no
=
i
)
.
first
()
machine
=
Machine
.
query
.
filter_by
(
machine_no
=
i
)
.
first
()
if
not
machine
:
if
not
machine
:
continue
continue
...
...
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