Skip to content

Commit

Permalink
port oops
Browse files Browse the repository at this point in the history
  • Loading branch information
tlevine committed Apr 7, 2013
1 parent 0e576ca commit 64a8eb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion listings-2
3 changes: 2 additions & 1 deletion reader/src/listing.py
Expand Up @@ -57,7 +57,7 @@
]

_parishes = '(Acadia|allen|ascension|assumption|avoyelles|beauregard|bienville|bossier|caddo|calcasieu|caldwell|cameron|catahoula|claiborne|concordia|de soto|east baton rouge|east carroll|east feliciana|evangeline|franklin|grant|iberia|iberville|jackson|jefferson|jefferson davis|lafayette|lafourche|lasalle|lincoln|livingston|madison|morehouse|natchitoches|orleans|ouachita|plaquemines|pointe coupee|rapides|red river|richland|sabine|saint bernard|saint charles|saint helena|saint james|saint john the baptist|saint landry|saint martin|saint mary|saint tammany|tangipahoa|tensas|terrebonne|union|vermilion|vernon|washington|webster|west baton rouge|west carroll|west feliciana|winn)'
_DESCRIPTION = re.compile(r'([0-9/]*): (.*) in ' + _parishes + ' Parish - ([^-]*)', flags = re.IGNORECASE)
_DESCRIPTION = re.compile(r'([0-9/]*): (.*) in ' + _parishes + ' Parish - ?([^-]*)', flags = re.IGNORECASE)

def listing_parse(rawtext):
html = lxml.html.fromstring(rawtext)
Expand Down Expand Up @@ -136,6 +136,7 @@ def main():

if web:
history = 'http://localhost:' + os.environ['PORT'] + '/applications/' + doc['permitApplicationNumber'] + '/history'
print history
history_file = requests.get(history).text
if len(filter(lambda line: ' bot {' in line, history_file.split('\n'))) > 2:
print doc['permitApplicationNumber'] + "'s data have already been uploaded."
Expand Down
2 changes: 1 addition & 1 deletion server/settings-dev.coffee
@@ -1,6 +1,6 @@
module.exports =
cache: 0
port: 1419
port: 8080
log: true
dbfile: '/tmp/wetlands.db'
logfile: '/tmp/scott.log'
Expand Down

0 comments on commit 64a8eb7

Please sign in to comment.