diff --git a/backend/data/issues.db b/backend/data/issues.db index 0eaa6586..97a29b77 100644 Binary files a/backend/data/issues.db and b/backend/data/issues.db differ diff --git a/data/dailySnapshots/2026-03-14.json b/data/dailySnapshots/2026-03-14.json new file mode 100644 index 00000000..060b7861 --- /dev/null +++ b/data/dailySnapshots/2026-03-14.json @@ -0,0 +1,7 @@ +{ + "date": "2026-03-14", + "indexScore": 50, + "delta": 0, + "topKeywords": [], + "emergingConcerns": [] +} \ No newline at end of file diff --git a/data/modelWeights.json b/data/modelWeights.json new file mode 100644 index 00000000..ecda2f1c --- /dev/null +++ b/data/modelWeights.json @@ -0,0 +1,35 @@ +{ + "categoryWeights": { + "Pothole": 5, + "Garbage": 3, + "Water Supply": 4, + "Streetlight": 2, + "Flooding": 8 + }, + "duplicateThreshold": 0.83, + "lastUpdated": "2026-03-14T19:32:45.319Z", + "history": [ + { + "date": "2026-03-14", + "categoryWeights": { + "Pothole": 5, + "Garbage": 3, + "Water Supply": 4, + "Streetlight": 2, + "Flooding": 8 + }, + "duplicateThreshold": 0.85 + }, + { + "date": "2026-03-14", + "categoryWeights": { + "Pothole": 5, + "Garbage": 3, + "Water Supply": 4, + "Streetlight": 2, + "Flooding": 8 + }, + "duplicateThreshold": 0.84 + } + ] +} \ No newline at end of file diff --git a/scheduler/dailyRefinementJob.ts b/scheduler/dailyRefinementJob.ts index 15f2a238..adf7065d 100644 --- a/scheduler/dailyRefinementJob.ts +++ b/scheduler/dailyRefinementJob.ts @@ -8,7 +8,7 @@ import { Issue } from "../services/types"; // Load environmental or fallback to test.db or production db const dbPath = - process.env.DB_PATH || path.join(__dirname, "../../backend/app.db"); + process.env.DB_PATH || path.join(__dirname, "../data/issues.db"); export class DailyRefinementJob { private db: sqlite3.Database;