remove old import
This commit is contained in:
@@ -25,6 +25,7 @@ from app.models.additional import Payment, Deposit, FileNote, FormVariable, Repo
|
||||
from app.models.flexible import FlexibleImport
|
||||
from app.models.audit import ImportAudit, ImportAuditFile
|
||||
from app.config import settings
|
||||
from app.utils.logging import import_logger
|
||||
|
||||
router = APIRouter(tags=["import"])
|
||||
|
||||
@@ -931,7 +932,7 @@ async def import_csv_data(
|
||||
rows_data.append(row_dict)
|
||||
|
||||
except Exception as row_error:
|
||||
print(f"Skipping malformed row {line_num}: {row_error}")
|
||||
import_logger.log_import_error(line_num, str(row_error), dict(zip(headers, fields)) if len(fields) <= len(headers) else None)
|
||||
skipped_rows += 1
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user