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
84468a3a
Commit
84468a3a
authored
Aug 24, 2019
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
insert missing global
parent
6e20b88e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend.py
backend.py
+2
-1
No files found.
backend.py
View file @
84468a3a
...
@@ -399,7 +399,7 @@ class TwitterSession:
...
@@ -399,7 +399,7 @@ class TwitterSession:
if more_replies_test and not get_nested(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)
debug
(
'Writing result for '
+
result
[
'profile'
][
'screen_name'
]
+
' to DB'
)
;
debug('Writing result for ' + result['profile']['screen_name'] + ' to DB')
db.write_result(result)
db.write_result(result)
return result
return result
...
@@ -516,6 +516,7 @@ if args.debug is not None:
...
@@ -516,6 +516,7 @@ if args.debug is not None:
debug_file = open(args.debug, "a")
debug_file = open(args.debug, "a")
def run():
def run():
global db
db = connect(host=args.mongo_host, port=args.mongo_port)
db = connect(host=args.mongo_host, port=args.mongo_port)
loop = asyncio.get_event_loop()
loop = asyncio.get_event_loop()
loop.run_until_complete(login_accounts(accounts, args.cookie_dir))
loop.run_until_complete(login_accounts(accounts, args.cookie_dir))
...
...
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