diff --git a/python_client/app/routes.py b/python_client/app/routes.py index b5b3e13..b17e182 100644 --- a/python_client/app/routes.py +++ b/python_client/app/routes.py @@ -84,7 +84,7 @@ def process_eq(weblink, saveloc, d): } df = df.rename(columns=cname_map) df['DATE'] = [parse(d, '{0:%Y}{0:%m}{0:%d}')] * len(df) - df['OI'] = ['0.0'] * len(df) + df['OI'] = ['0'] * len(df) df = df[['SYMBOL', 'DATE', 'OPEN', 'HIGH', 'LOW', 'CLOSE', 'VOLUME', 'OI']] df.to_csv(saveloc, header=None, index=None) return df @@ -120,7 +120,7 @@ def process_fu(weblink, saveloc, d, asPrefix=False): def process_in(weblink, saveloc, d, index_mapping={}, keeplist=set(), keepall='false'): df = get_csv(weblink) - df = df.replace('-', '0.0') + df = df.replace('-', '0') cname_map = { 'Index Name': 'SYMBOL', @@ -132,7 +132,7 @@ def process_in(weblink, saveloc, d, index_mapping={}, keeplist=set(), keepall='f } df = df.rename(columns=cname_map) df['DATE'] = [parse(d, '{0:%Y}{0:%m}{0:%d}')] * len(df) - df['OI'] = ['0.0'] * len(df) + df['OI'] = ['0'] * len(df) df = df[['SYMBOL', 'DATE', 'OPEN', 'HIGH', 'LOW', 'CLOSE', 'VOLUME', 'OI']] df['SYMBOL'] = df['SYMBOL'].apply(lambda x: x.upper()) def _rename(item): @@ -293,7 +293,7 @@ def index(): @app.route('/version') def version(): - return "4.2" + return "4.3" @app.route('/test', methods=['POST']) def test(): diff --git a/python_client/app/templates/index.html b/python_client/app/templates/index.html index 31aedbc..7c25325 100644 --- a/python_client/app/templates/index.html +++ b/python_client/app/templates/index.html @@ -226,6 +226,7 @@

StockD v4.0

+

Latest Release can be found at https://github.com/virresh/StockD/releases/latest.

Details on Index Mapping can be found at https://github.com/virresh/StockD/wiki/Index-Mapping.

Detailed user guide can be found at https://github.com/virresh/StockD/wiki/User-Guide.

You can also ask for help via gitter chatroom.

@@ -312,7 +313,7 @@

StockD v4.0

}; async function setnews() { await $.get("/news").done(function(data) { - $('#news').text(data); + $('#news').html(data); }).fail(function (err){ swal('Internet Problem!', "Could not connect to internet. Download may not work!", "error"); });