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
89f91b49
Commit
89f91b49
authored
Feb 05, 2020
by
Raphael Beer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Meta: add test subject's screen_name to log
parent
c4de8213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
backend.py
backend.py
+6
-6
No files found.
backend.py
View file @
89f91b49
...
...
@@ -291,7 +291,7 @@ class TwitterSession:
debug
(
'Unexpected Exception:'
)
debug
(
traceback
.
format_exc
())
async
def
test_barrier
(
self
,
user_id
):
async
def
test_barrier
(
self
,
user_id
,
screen_name
):
try
:
tweets_replies
=
await
self
.
get_profile_tweets_raw
(
user_id
)
tweet_ids
=
self
.
get_ordered_tweet_ids
(
tweets_replies
)
...
...
@@ -329,9 +329,9 @@ class TwitterSession:
if
replied_tweet
[
"reply_count"
]
>
500
:
continue
debug
(
'
Tban
: '
)
debug
(
'
Found:'
+
tid
+
'
\n
'
)
debug
(
'
In reply to:'
+
replied_to_id
+
'
\n
'
)
debug
(
'
['
+
screen_name
+
'] Barrier Test
: '
)
debug
(
'
['
+
screen_name
+
'] Found:'
+
tid
)
debug
(
'
['
+
screen_name
+
'] In reply to:'
+
replied_to_id
)
reference_session
=
next_session
()
reference_session
=
self
...
...
@@ -447,9 +447,9 @@ class TwitterSession:
result
[
"tests"
][
"ghost"
]
=
{
"ban"
:
False
}
if
more_replies_test
and
not
get_nested
(
result
,
[
"tests"
,
"ghost"
,
"ban"
],
False
):
result
[
"tests"
][
"more_replies"
]
=
await
self
.
test_barrier
(
user_id
)
result
[
"tests"
][
"more_replies"
]
=
await
self
.
test_barrier
(
user_id
,
profile
[
'screen_name'
]
)
debug
(
'
Writing result for '
+
result
[
'profile'
][
'screen_name'
]
+
'
to DB'
)
debug
(
'
['
+
profile
[
'screen_name'
]
+
'] Writing result
to DB'
)
db
.
write_result
(
result
)
return
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