Browse Source

Fix Bassetlaw (there really are some postcodes in there.. try

23/08/2007)
add reason to log and email.
master
duncan.parkes 17 years ago
parent
commit
5b8594973e
3 changed files with 9 additions and 5 deletions
  1. +7
    -2
      deployment_script_common
  2. +2
    -2
      python_scrapers/AcolnetParser.py
  3. +0
    -1
      python_scrapers/SitesToGenerate.csv

+ 7
- 2
deployment_script_common View File

@@ -67,14 +67,19 @@ if [ -a $BACKUP_DIRECTORY/docs/.htaccess ];
echo "No .htaccess to put back";
fi;

echo "Enter a reason for deployment:"
read $REASON
echo

# Write something in the deployment log
echo
echo "Updating deployment log"
echo "Deployed by $USER on `date`" >> $DEPLOYMENT_LOG
echo -e "Deployed by $USER on `date`\nReason: $REASON" >> $DEPLOYMENT_LOG
echo

# Email the team
echo "emailing the team"
echo "www.planningalerts.com redeployed by $USER at `date`" | mail -s "PlanningAlerts Deployment" $TEAM_EMAIL
echo -e "www.planningalerts.com redeployed by $USER on `date`\nReason: $REASON" | mail -s "PlanningAlerts Deployment" $TEAM_EMAIL

echo
echo "Remember to check that there are no changes needed in:"


+ 2
- 2
python_scrapers/AcolnetParser.py View File

@@ -240,8 +240,8 @@ class BasingstokeParser(AcolnetParser):
class BassetlawParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 5
proposal_tr = 6
location_tr = 4
proposal_tr = 5

comments_email_address = "planning@bassetlaw.gov.uk"



+ 0
- 1
python_scrapers/SitesToGenerate.csv View File

@@ -52,7 +52,6 @@
"Torbay Council", "Torbay", "http://www.torbay.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"South Ribble Borough Council", "South Ribble", "http://publicaccess.southribble.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Peterborough City Council", "Peterborough", "http://194.72.246.15/publicaccess/dc/", "PublicAccess", "PublicAccessParser"
"Dundee City Council", "Dundee", "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Northumberland County Council", "Northumberland", "http://planning.northumberland.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Milton Keynes Council", "Milton Keynes", "http://publicaccess.milton-keynes.gov.uk/tdc/", "PublicAccess", "PublicAccessParser"
"Coventry City Council", "Coventry", "http://planning.coventry.gov.uk/", "ApplicationSearchServletParser", "CoventrySearchParser"


Loading…
Cancel
Save