From f2a0b3c3af559d7702485422ab435ea942f42e86 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 25 Jul 2025 22:42:15 +0530 Subject: [PATCH] Fix job posting generator processing issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Correct price display from 4.00 AED to dynamic agent price (3.00 AED) - Fix JavaScript balance check to use proper agent price - Improve polling function with better error handling and logging - Add proper JavaScript variable initialization for agent price - Enhance status response handling for failed requests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../job_posting_generator/detail.html | 42 ++++++++++++++----- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/job_posting_generator/templates/job_posting_generator/detail.html b/job_posting_generator/templates/job_posting_generator/detail.html index a6a4bea..18b0f59 100644 --- a/job_posting_generator/templates/job_posting_generator/detail.html +++ b/job_posting_generator/templates/job_posting_generator/detail.html @@ -14,6 +14,9 @@ document.body.setAttribute('data-user-authenticated', '{{ user.is_authenticated|yesno:"true,false" }}'); document.body.setAttribute('data-login-url', '{% url "authentication:login" %}'); document.body.setAttribute('data-wallet-url', '{% url "wallet:wallet" %}'); + + // Initialize agent configuration + window.AGENT_PRICE = {{ agent.price }}; });