tons of stuff but working again

This commit is contained in:
2025-07-10 02:21:19 -05:00
parent 5e828f8e74
commit 2b63f4c9c7
369 changed files with 337 additions and 472 deletions

View File

@ -118,6 +118,7 @@ def dashboard():
# Plant totals
total_plants = Plant.query.count()
total_images = Media.query.count()
active_plants = Plant.query.filter_by(is_active=True).count()
# Top 5 popular plant types
@ -153,6 +154,7 @@ def dashboard():
referrers=referrers,
# Stats
total_plants=total_plants,
total_images=total_images,
active_plants=active_plants,
popular_plants=popular_plants,
)

View File

@ -145,6 +145,14 @@
</div>
</div>
</div>
<div class="col">
<div class="card h-100 text-center">
<div class="card-body">
<h6 class="text-muted">Total Images</h6>
<p class="display-6 mb-0">{{ total_images }}</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100 text-center">
<div class="card-body">