Skip to content

Commit

Permalink
WIP-Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
soaibsafi committed Jun 25, 2024
1 parent a14bf78 commit f30b4a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
2 changes: 2 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FRONTEND_URL="http://localhost:5173/"
VITE_FMP_API_URL=http://localhost:8000/api
ALLOY_API_URL=http://localhost:8080
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_NAME=postgres
Expand Down
8 changes: 0 additions & 8 deletions backend/routes/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,6 @@ def get_alloy_instance_by_cmd(cmd: int):
}
try:
response = requests.post(url, json=data, headers=headers)
import json
fn = time.strftime("%Y%m%d-%H%M%S")
with open(f"logs/{fn}.json", "w") as f:
json.dump(response.json(), f, indent=2)
return jsonify(response.json()), response.status_code
except requests.exceptions.RequestException as e:
return jsonify({'error': str(e)}), 500
Expand All @@ -320,10 +316,6 @@ def get_alloy_next_instance():
}
try:
response = requests.post(url, data, headers=headers)
import json
fn = time.strftime("%Y%m%d-%H%M%S")
with open(f"logs/{fn}.json", "w") as f:
json.dump(response.json(), f, indent=2)
return jsonify(response.json()), response.status_code
except requests.exceptions.RequestException as e:
return jsonify({'error': str(e)}), 500
35 changes: 0 additions & 35 deletions frontend/src/api/alloyApi.js

This file was deleted.

0 comments on commit f30b4a9

Please sign in to comment.