@cryptotaxi247 / CoPilot / commits / 85e7cfe4

precommit fixes

Taylor committed Jul 13, 2023 at 21:23 UTC 85e7cfe4317f5d4a27ebc8e14223a76978943882
2 files changed +5 -1
backend/app/routes/influxdb.py
+2
@@ -43,6 +43,7 @@ def get_check_query(check_id: str) -> jsonify:
43 check_query = service.collect_check_query(check_id)
44 return jsonify(check_query)
45
46 +
47 @bp.route("/influxdb/alerts", methods=["GET"])
48 def get_alerts() -> jsonify:
49 """
@@ -56,6 +57,7 @@ def get_alerts() -> jsonify:
57 alerts = service.collect_alerts()
58 return jsonify(alerts)
59
60 +
61 @bp.route("/influxdb/alert", methods=["POST"])
62 def put_alert() -> jsonify:
63 """
backend/app/services/InfluxDB/alerts.py
+3 -1
@@ -1,4 +1,6 @@
1 -from typing import Dict, Union, List
1 +from typing import Dict
2 +from typing import List
3 +from typing import Union
4
5 import requests
6 from loguru import logger