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
3dd2171e
Commit
3dd2171e
authored
Nov 29, 2019
by
Raphael Beer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: debug not available
parent
a9a23784
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
backend.py
backend.py
+1
-1
timeline_termination.py
timeline_termination.py
+1
-2
No files found.
backend.py
View file @
3dd2171e
...
...
@@ -442,7 +442,7 @@ class TwitterSession:
if
result
[
"tests"
][
"search"
]
!=
False
:
debug
(
'Requesting TimelineTermination status for more_replies.tweet ['
+
result
[
"tests"
][
"search"
]
+
']'
)
result
[
"tests"
][
"timeline_termination"
]
=
await
TimelineTermination
.
requestTest
(
result
[
"tests"
][
"search"
])
result
[
"tests"
][
"timeline_termination"
]
=
await
TimelineTermination
.
requestTest
(
result
[
"tests"
][
"search"
]
,
debug
)
debug
(
'Writing result for '
+
result
[
'profile'
][
'screen_name'
]
+
' to DB'
)
db
.
write_result
(
result
)
...
...
timeline_termination.py
View file @
3dd2171e
...
...
@@ -5,12 +5,11 @@ class TimelineTermination:
endpoint
=
None
session
=
ClientSession
()
async
def
requestTest
(
tweet_id
):
async
def
requestTest
(
tweet_id
,
debug
):
async
with
TimelineTermination
.
session
.
get
(
TimelineTermination
.
endpoint
+
tweet_id
)
as
response
:
result
=
await
response
.
json
()
if
result
.
get
(
"name"
,
None
)
==
"APIError"
and
result
[
"errors"
][
0
][
"code"
]
==
"ENOREPLIES"
:
global
debug
debug
(
'[TimelineTermination] '
+
tweet_id
+
'has no replies - can not test.'
)
result
=
None
...
...
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