Fix Zoho connection issues and add local testing capabilities

- Fixed 'days_back' parameter error in zoho_client.py
- Added robust settings validation in app.py to prevent int() errors
- Created LOCAL_TESTING.md with comprehensive testing guide
- Added run_local.sh for easy local server setup
- Added deploy_updates.sh for deployment instructions
- Added test_local_connection.py for automated testing
- Updated config.json with proper structure
- All fixes tested and working locally
This commit is contained in:
Iyeoluwa Akinrinola
2025-07-25 12:40:10 +01:00
parent 9edabe0397
commit 70b2bcc89d
7 changed files with 239 additions and 15 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
# Deployment script for Email Alerts Application updates
# This script helps deploy the fixed ZohoClient code
echo "🚀 Deploying Email Alerts Application updates..."
# Files that were updated:
echo "📝 Updated files:"
echo " - zoho_client.py (fixed days_back parameter)"
echo " - config.json (removed hardcoded credentials)"
echo " - test_zoho_connection.py (new test script)"
echo ""
echo "✅ Code is ready for deployment!"
echo ""
echo "📋 Deployment checklist:"
echo "1. Upload the updated files to your server"
echo "2. Restart the application on the server"
echo "3. Test the connection using the web interface"
echo ""
echo "🔧 Key changes made:"
echo " - Fixed ZohoClient.fetch_emails() to accept days_back parameter"
echo " - Removed hardcoded credentials from config.json"
echo " - Users can now input credentials through the web interface"
echo ""
echo "🧪 Test the connection after deployment:"
echo " - Go to the web interface"
echo " - Enter credentials: projects@manaknightdigital.com / 4o%!sbk\$(3!>@#567!!"
echo " - Click 'Test Connection'"
echo " - Should show 'Connection successful!'"
echo ""
echo "🎯 The days_back parameter error should now be resolved!"