develop #1

Merged
gitea merged 44 commits from develop into main 2025-11-26 01:15:20 +00:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit 9dd2e2598b - Show all commits

View File

@@ -38,7 +38,7 @@ services:
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
frontend:
image: dymai/syntria-frontend:1.0.14
image: dymai/syntria-frontend:1.0.15
container_name: syntria-frontend-prod
restart: always
depends_on:

View File

@@ -3227,7 +3227,9 @@ function ReportsTab({ user }) {
const API_URL = import.meta.env.VITE_API_URL || ''
let url = `${API_URL}/api/reports/dashboard?`
if (filtersToApply.date) url += `start_date=${filtersToApply.date}&`
if (filtersToApply.date) {
url += `start_date=${filtersToApply.date}&end_date=${filtersToApply.date}&`
}
if (filtersToApply.mechanicId) url += `mechanic_id=${filtersToApply.mechanicId}&`
console.log('Dashboard URL:', url)
@@ -3255,7 +3257,9 @@ function ReportsTab({ user }) {
const API_URL = import.meta.env.VITE_API_URL || ''
let url = `${API_URL}/api/reports/inspections?`
if (filtersToApply.date) url += `start_date=${filtersToApply.date}&`
if (filtersToApply.date) {
url += `start_date=${filtersToApply.date}&end_date=${filtersToApply.date}&`
}
if (filtersToApply.mechanicId) url += `mechanic_id=${filtersToApply.mechanicId}&`
console.log('Inspections URL:', url)