updating the service
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 35s

This commit is contained in:
vickytechkey 2026-10-16 13:02:23 +05:30
parent 14ca86323e
commit ddb5dd3aa1
2 changed files with 21 additions and 12 deletions

View file

@ -1,4 +1,5 @@
import os
import sys
from pathlib import Path
from dotenv import load_dotenv
@ -74,6 +75,14 @@ db_pass = os.environ.get('DB_PASSWORD', 'vignesh_secret_pass_2026')
env_name = os.environ.get('ENVIRONMENT', 'beta')
db_name = os.environ.get('DB_NAME', f"{env_name}-documentverifcation" if env_name == "beta" else "documentverifcation")
if 'test' in sys.argv:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
}
}
else:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",

View file

@ -359,11 +359,11 @@ class SellerPanGstVerifyView(APIView):
elif not pan_name_matched:
overall_success = False
overall_status = "NAME_MISMATCH"
error_msg = f"PAN name mismatch: The entered name '{seller_name}' does not match PAN record '{verified_pan_name}' ({match_result.get('reason', '')})"
error_msg = f"Name mismatch: The entered name '{seller_name}' does not match PAN record '{verified_pan_name}' ({match_result.get('reason', '')})"
elif target_gstin and not gst_name_matched:
overall_success = False
overall_status = "GST_NAME_MISMATCH"
error_msg = f"GST name mismatch: The entered name '{seller_name}' does not match GST legal name '{verified_gst_name}' ({gst_name_match.get('reason', '')})"
error_msg = f"Name mismatch: The entered name '{seller_name}' does not match GST legal name '{verified_gst_name}' ({gst_name_match.get('reason', '')})"
else:
overall_success = pan_result.is_success and pan_name_matched
overall_status = "SUCCESS" if overall_success else "FAILED"