Skip to content

Commit

Permalink
Merge pull request #54 from cityofaustin/csr_updater
Browse files Browse the repository at this point in the history
ESB CSR Return Messaging
  • Loading branch information
johnclary committed Sep 28, 2017
2 parents cea95f1 + 19cffa4 commit 56185e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data_tracker/esb_xml_gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'''
'''
Generate XML message to update 311 Service Reqeusts
via Enterprise Service Bus
Expand Down Expand Up @@ -110,8 +110,9 @@ def main(date_time):
print('starting stuff now')

try:
data = check_for_data()
# check for data at public endpoint
if check_for_data():
if data:
# get data at private enpoint
filters = get_csr_filters(cfg['emi_field'], cfg['esb_status_field'], cfg['esb_status_match'])
kn = get_data(filters)
Expand Down
5 changes: 5 additions & 0 deletions shell_scripts/esb_xml_gen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
cd ../data_tracker
source activate datapub1
python esb_xml_gen.py data_tracker_prod
source deactivate
5 changes: 5 additions & 0 deletions shell_scripts/esb_xml_send.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
cd ../data_tracker
source activate datapub1
python esb_xml_send.py data_tracker_prod
source deactivate

0 comments on commit 56185e6

Please sign in to comment.