Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DCP project
DCPv4
Commits
95ed7243
Commit
95ed7243
authored
Apr 26, 2022
by
Elizabeth Myers
💬
Browse files
Minor style fix
parent
371cb00e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dcp/commands/listgroups.py
dcp/commands/listgroups.py
+5
-5
No files found.
dcp/commands/listgroups.py
View file @
95ed7243
...
...
@@ -29,11 +29,11 @@ class ListGroups(Command):
async
with
async_session
()
as
session
:
async
with
session
.
begin
():
if
target
==
'user'
:
stmt
=
(
select
(
StorageGroup
)
.
join
(
StorageGroupMember
,
Storage
GroupMember
.
group_id
==
StorageGroup
.
id
)
.
where
(
StorageUser
.
username
==
client
.
username
)
)
stmt
=
(
select
(
StorageGroup
).
join
(
StorageGroup
Member
,
StorageGroupMember
.
group_id
==
StorageGroup
.
id
).
where
(
Storage
User
.
username
==
client
.
username
)
)
else
:
stmt
=
(
select
(
StorageGroup
))
result
=
await
session
.
execute
(
stmt
)
...
...
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