Fix AI assignment errors and tag matching

- Add missing updatedAt column to AssignmentJob table
- Fix algorithmic assignment to use AI-assigned projectTags instead of raw CSV tags
- Add case-insensitive tag matching for better expertise matching
- Scores should now properly reflect tag matches between judges and projects

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 14:14:19 +01:00
parent fbb1173ea9
commit e3e3fa9da4
2 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
-- Add missing updatedAt column to AssignmentJob table
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1 FROM information_schema.columns
WHERE table_name = 'AssignmentJob' AND column_name = 'updatedAt'
) THEN
ALTER TABLE "AssignmentJob" ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
END IF;
END $$;