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
eb36ab3a
Commit
eb36ab3a
authored
Dec 01, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
it soon wiped all nodes
parent
79b0651f
Pipeline
#18302
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
backend_requests.py
backend_requests.py
+13
-12
No files found.
backend_requests.py
View file @
eb36ab3a
...
@@ -60,18 +60,19 @@ def doSearch(screen_name, twitter_b):
...
@@ -60,18 +60,19 @@ def doSearch(screen_name, twitter_b):
@
app
.
route
(
'/_healthy'
)
@
app
.
route
(
'/_healthy'
)
def
healthy
():
def
healthy
():
result
=
None
return
{
"healthy"
:
True
}
if
isHealthy
:
#result = None
return
{
'healthy'
:
True
}
#if isHealthy:
with
healthLock
:
# return {'healthy': True}
if
isHealthy
:
#with healthLock:
return
{
'healthy'
:
True
}
# if isHealthy:
doSearch
(
'Dream'
,
getTwitterSession
())
# return {'healthy': True}
if
isHealthy
:
# doSearch('Dream', getTwitterSession())
print
(
"Rate limit passed."
)
# if isHealthy:
return
{
'healthy'
:
True
}
# print("Rate limit passed.")
return
Response
(
status
=
500
)
# return {'healthy': True}
return
result
# return Response(status=500)
#return result
@
app
.
route
(
"/<screen_name>"
)
@
app
.
route
(
"/<screen_name>"
)
...
...
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