Skip to content

Commit 67d9c1f

Browse files
committed
deploy: 67f0416
1 parent c91d1d8 commit 67d9c1f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

EOAgriTool.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import requests
44
from bs4 import BeautifulSoup
55
import concurrent.futures
6-
import os # Import the os module
76

87
app = Flask(__name__)
98

@@ -105,7 +104,7 @@ def home():
105104
sensor_data = get_sensor_data()
106105
recommendations = generate_expert_recommendations(sensor_data)
107106
web_best_practices = fetch_real_time_best_practices()
108-
return render_template("dashboard.html", # Changed to dashboard.html
107+
return render_template("index.html",
109108
sensor_data=sensor_data,
110109
recommendations=recommendations,
111110
web_best_practices=web_best_practices)
@@ -128,6 +127,4 @@ def delete_extension():
128127
return jsonify({"error": str(e)}), 500
129128

130129
if __name__ == "__main__":
131-
# Determine the port to run on (Heroku-friendly)
132-
port = int(os.environ.get("PORT", 8000))
133-
app.run(host="0.0.0.0", port=port, debug=True)
130+
app.run(host="0.0.0.0", port=8000, debug=True)

dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ <h3 class="card-title">🌱 Expert Recommendations</h3>
490490
const mockRecommendations = [
491491
{ title: "Climate-Smart Agriculture", url: "https://www.fao.org/climate-smart-agriculture/en/", summary: "Integrate climate change adaptation and mitigation into agricultural practices." },
492492
{ title: "Sustainable Soil Management", url: "https://www.fao.org/soils-portal/soil-management/en/", summary: "Improve soil health through conservation tillage, cover cropping, and organic matter management." },
493-
{ title: "Efficient Water Use", url: "https://www.fao.org/water/en/", summary: "Optimize irrigation scheduling and explore water-saving techniques like drip irrigation." }
493+
{ title: "Efficient Water Use", url: "https://www.fao.org/egypt/projects/japan-project/en", summary: "Optimize irrigation scheduling and explore water-saving techniques like drip irrigation." }
494494
];
495495

496496
if (mockRecommendations.length === 0) {

0 commit comments

Comments
 (0)