aboutsummaryrefslogtreecommitdiffstats
path: root/python/gfs_monitor.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/gfs_monitor.py')
-rw-r--r--python/gfs_monitor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/gfs_monitor.py b/python/gfs_monitor.py
index 5b2665bc..5386f358 100644
--- a/python/gfs_monitor.py
+++ b/python/gfs_monitor.py
@@ -19,12 +19,12 @@ if __name__ == "__main__":
args = parser.parse_args()
logger = logging.getLogger(__name__)
conn = dbconn("dawndb")
- sql_str = "SELECT endqty as payment_amount, invccy as currency, periodenddate as settle_date FROM valuation_reports vr WHERE fund=%s AND port ='GFS_HELPER_BUSINESS_UNIT' AND periodenddate =%s AND abs(endqty) > 50000;"
+ sql_str = "SELECT endqty as amount, invccy as currency, periodenddate as date, port as portfolio FROM valuation_reports vr WHERE fund=%s AND port ='GFS_HELPER_BUSINESS_UNIT' AND periodenddate =%s;"
em = ExchangeMessage()
with conn.cursor() as c:
- for fund in ("BOWDST", "SERCGMAST"):
+ for fund in ("SERCGMAST", "BOWDST"):
c.execute(sql_str, (fund, args.cob))
for row in c:
- GFSMonitor.stage(c._asdict())
+ GFSMonitor.stage(row._asdict())
GFSMonitor.email(fund)
GFSMonitor._insert_queue.clear()