feat(deploy): TrueNAS Custom-App + Auto-Deploy, plus aufgelaufene Arbeit
Deployment: - custom-app.compose.yaml: self-contained Compose fuer TrueNAS "Custom App" (absolute Host-Bind-Pfade, postgres:18, pull_policy always, Port 8090) - scripts/truenas-deploy.sh: Host-Skript create/redeploy via midclt (App bleibt unter Apps sichtbar) inkl. Image-Pull + Health-Check - ci.yml Deploy-Job: laeuft auf ubuntu-latest-Runner, kopiert Deploy-Dateien per SSH auf den NAS-Host und triggert truenas-deploy.sh (statt runs-on goldeye) - compose.yaml/.env.example: postgres:18 (Locale-Match zur Quell-DB), Port 8090 - .gitignore: .agents/, tools/rag/, deploy/truenas/.env (Secrets/Scratch) Aufgelaufene Feature-Arbeit (verified/Freeze, Migrationen, Import-Triage): - GerbilOverride/VerifiedGerbil-Endpoints + GerbilSnapshotService + Tests - EF-Migrationen (ShowInChronicle, Stillborn, BirthOrder, ManualFlag, DSGVO) - Frontend VerifizierteTierePage + verified-API + e2e-Spec - diverse Import-/Triage-Skripte und -Tests Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -129,6 +129,35 @@ def extract(docx_path: str):
|
||||
last_dates = _LAST_DATE_RE.findall(dob_raw)
|
||||
dob_clean = _norm_dob(last_dates[-1] if last_dates else dob_raw)
|
||||
|
||||
# Map 22-Wurf and 23-Wurf to their correct alphabetical sequence name based on DOB
|
||||
if litter_id == "22-Wurf":
|
||||
dob_map = {
|
||||
"17.06.2023": "V22-Wurf",
|
||||
"13.07.2023": "X22-Wurf",
|
||||
"20.07.2023": "Y22-Wurf",
|
||||
"24.07.2023": "Z22-Wurf"
|
||||
}
|
||||
if dob_clean in dob_map:
|
||||
litter_id = dob_map[dob_clean]
|
||||
elif litter_id == "23-Wurf":
|
||||
dob_map = {
|
||||
"03.10.2023": "F23-Wurf",
|
||||
"06.10.2023": "G23-Wurf",
|
||||
"10.10.2023": "H23-Wurf",
|
||||
"17.10.2023": "I23-Wurf",
|
||||
"31.10.2023": "J23-Wurf",
|
||||
"04.11.2023": "K23-Wurf",
|
||||
"11.11.2023": "L23-Wurf",
|
||||
"17.11.2023": "M23-Wurf",
|
||||
"20.11.2023": "N23-Wurf",
|
||||
"01.12.2023": "O23-Wurf",
|
||||
"02.12.2023": "P23-Wurf",
|
||||
"03.12.2023": "Q23-Wurf",
|
||||
"05.12.2023": "R23-Wurf"
|
||||
}
|
||||
if dob_clean in dob_map:
|
||||
litter_id = dob_map[dob_clean]
|
||||
|
||||
litter = {
|
||||
"litterId": litter_id,
|
||||
"dob": dob_clean,
|
||||
|
||||
Reference in New Issue
Block a user