feat: /api/v2/analiza/* endpoints - sport analytics backend
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv('/opt/rinet-gpu/.env.master')
|
||||
# auto-added by patch_scrapers_with_dotenv.sh
|
||||
"""
|
||||
OCR worker daemon — pgz_sport.invoice_uploads
|
||||
Polls pending uploads → OCR (tesseract / pdfplumber) → regex extraction → (optional LLM)
|
||||
@@ -9,7 +12,7 @@ import os, re, time, json, subprocess, traceback, hashlib
|
||||
import psycopg2, psycopg2.extras
|
||||
from pathlib import Path
|
||||
|
||||
DB = dict(host='localhost', port=5432, dbname='rinet_v3', user='rinet', password='R1net2026!SecureDB#v7')
|
||||
DB = dict(host='10.10.0.2', port=5432, dbname='rinet_v3', user='rinet', password=os.environ["DB_PASSWORD"])
|
||||
POLL = 8 # seconds
|
||||
|
||||
def db():
|
||||
|
||||
Reference in New Issue
Block a user