Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
070ae88a
Commit
070ae88a
authored
Dec 03, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
90d212da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
User.py
controller/User.py
+0
-1
No files found.
controller/User.py
View file @
070ae88a
...
...
@@ -171,7 +171,6 @@ def finduser():
@
user
.
route
(
"/userdetail"
,
methods
=
[
"GET"
])
def
userdetail
():
userinfo
=
db
.
session
.
query
(
User
.
id
,
User
.
name
,
User
.
email_address
,
Role
.
name
.
label
(
"role_name"
),
Organization
.
path
.
label
(
"organization"
))
.
filter
(
User
.
role_id
==
Role
.
id
,
User
.
organization_id
==
Organization
.
id
,
User
.
id
==
session
.
get
(
"id"
))
.
first
()
print
(
userinfo
.
email_address
)
usermenu
=
db
.
session
.
query
(
Menu
.
id
,
Menu
.
name
,
Menu
.
router
,
Menu
.
icon
,
Menu
.
parent_id
,
Menu
.
path
)
.
filter
(
Permissions
.
type
==
0
,
Permissions
.
p_id
==
Menu
.
id
,
Permissions
.
role_id
==
Role
.
id
,
User
.
role_id
==
Role
.
id
,
User
.
id
==
session
.
get
(
"id"
))
.
all
()
usermenu
=
sorted
(
usermenu
,
key
=
lambda
x
:
len
(
list
(
filter
(
None
,
x
.
path
.
split
(
"/"
)))),
reverse
=
False
)
result
=
[]
...
...
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