Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
shadowban-eu-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
shadowban-eu-backend
Commits
dafb10c7
You need to sign in or sign up before continuing.
Commit
dafb10c7
authored
Apr 20, 2021
by
Raphael Beer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: counting sensitives on suspended accounts
parent
aa8f5a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/profile.py
tests/profile.py
+2
-1
No files found.
tests/profile.py
View file @
dafb10c7
...
@@ -49,7 +49,8 @@ async def test(session, username: str) -> Tuple[str, Dict[str, Any]]:
...
@@ -49,7 +49,8 @@ async def test(session, username: str) -> Tuple[str, Dict[str, Any]]:
profile
[
"has_tweets"
]
=
False
profile
[
"has_tweets"
]
=
False
if
profile
[
"exists"
]
and
not
profile
.
get
(
"protected"
,
False
):
log
.
debug
(
profile
)
if
profile
[
"exists"
]
and
not
profile
.
get
(
"protected"
,
False
)
and
not
profile
.
get
(
"suspended"
,
False
):
profile
[
"sensitives"
]
=
await
count_sensitives
(
session
,
user_id
)
profile
[
"sensitives"
]
=
await
count_sensitives
(
session
,
user_id
)
return
user_id
,
profile
return
user_id
,
profile
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