sonuprasad23 commited on
Commit
a72aeff
·
1 Parent(s): bbaf5aa

Updated Logic for Refund

Browse files
Files changed (1) hide show
  1. server.py +13 -1
server.py CHANGED
@@ -232,4 +232,16 @@ def handle_otp(data):
232
  emit('login_successful')
233
  session_id = 'user_session'
234
  socketio.start_background_task(run_automation_process, session_id)
235
- else: emi
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  emit('login_successful')
233
  session_id = 'user_session'
234
  socketio.start_background_task(run_automation_process, session_id)
235
+ else: emit('error', {'message': f'OTP failed: {error_message}'})
236
+
237
+ @socketio.on('terminate_process')
238
+ def handle_terminate():
239
+ if bot_instance: print("Termination signal received."); bot_instance.stop()
240
+
241
+ if __name__ == '__main__':
242
+ print("====================================================================")
243
+ print(" 🤗 Hillside Automation - Definitive Multi-Workflow Platform")
244
+ print(f" Frontend URL: {FRONTEND_ORIGIN}")
245
+ print(f" Port: {os.getenv('PORT', 7860)}")
246
+ print("====================================================================")
247
+ socketio.run(app, host='0.0.0.0', port=int(os.getenv('PORT', 7860)))