mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 09:12:06 -05:00
Remove SocketIO (#2019)
* Remove SocketIO We have tried a few times to enable SocketIO in our app and it has been a challenge each step of the way, and now there is a dependency incompatibility it seems. Given that we are in maintenance mode with the applicaiton currently and hve different plans for the interface, we are removing this dependency. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov> * Remove more unused code and address Flake8 warnings Signed-off-by: Carlo Costino <carlo.costino@gsa.gov> * Revert changes to fix test Signed-off-by: Carlo Costino <carlo.costino@gsa.gov> --------- Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
14
app/utils.py
14
app/utils.py
@@ -146,20 +146,6 @@ def debug_not_production(msg):
|
||||
current_app.logger.info(msg)
|
||||
|
||||
|
||||
def emit_job_update_summary(job):
|
||||
from app import socketio
|
||||
|
||||
socketio.emit(
|
||||
"job_updated",
|
||||
{
|
||||
"job_id": str(job.id),
|
||||
"job_status": job.job_status,
|
||||
"notification_count": job.notification_count,
|
||||
},
|
||||
room=f"job-{job.id}",
|
||||
)
|
||||
|
||||
|
||||
def is_suspicious_input(input_str):
|
||||
if not isinstance(input_str, str):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user