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
190eacee
Commit
190eacee
authored
Dec 03, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encapsulate?
parent
38978154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
backend.py
backend.py
+5
-3
No files found.
backend.py
View file @
190eacee
...
...
@@ -21,6 +21,8 @@ TWITTER_AUTH_KEY = 'AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%
routes
=
web
.
RouteTableDef
()
app
=
web
.
Application
()
class
UnexpectedApiError
(
Exception
):
pass
...
...
@@ -614,7 +616,6 @@ if (args.cors_allow is None):
else
:
debug
(
'[CORS] Allowing requests from: '
+
args
.
cors_allow
)
accounts
=
[]
if
args
.
account_file
is
None
:
debug
(
'No account file specified.'
)
...
...
@@ -645,9 +646,7 @@ def run():
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
login_accounts
(
accounts
,
args
.
cookie_dir
))
loop
.
run_until_complete
(
login_guests
())
app
=
web
.
Application
()
app
.
add_routes
(
routes
)
web
.
run_app
(
app
,
host
=
args
.
host
,
port
=
args
.
port
)
return
app
if
args
.
daemon
:
...
...
@@ -655,3 +654,6 @@ if args.daemon:
run
()
else
:
run
()
if
__name__
==
"__main__"
:
web
.
run_app
(
app
,
host
=
args
.
host
,
port
=
args
.
port
)
\ No newline at end of file
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