فهرست منبع

fix: fix get_all api error

chemf 6 سال پیش
والد
کامیت
8ba7130c56
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Api/ProxyApi.py

+ 1 - 1
Api/ProxyApi.py

@@ -69,7 +69,7 @@ def refresh():
 @app.route('/get_all/')
 @app.route('/get_all/')
 def getAll():
 def getAll():
     proxies = ProxyManager().getAll()
     proxies = ProxyManager().getAll()
-    return [_.info_dict for _ in proxies]
+    return jsonify([_.info_dict for _ in proxies])
 
 
 
 
 @app.route('/delete/', methods=['GET'])
 @app.route('/delete/', methods=['GET'])