diff --git a/examples/Python 3.4/Client_Complete.bat b/examples/Python 3.4/Client_Complete.bat old mode 100644 new mode 100755 diff --git a/examples/Python 3.4/Client_Complete.py b/examples/Python 3.4/Client_Complete.py old mode 100644 new mode 100755 index 1f1e12d..bb2af0a --- a/examples/Python 3.4/Client_Complete.py +++ b/examples/Python 3.4/Client_Complete.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import zlib import zmq import simplejson @@ -200,12 +202,12 @@ def main(): for __commodity in __json['message']['commodities']: echoLog(' - Name: ' + __commodity['name']) echoLog(' - Buy Price: ' + str(__commodity['buyPrice'])) - echoLog(' - Supply: ' + str(__commodity['supply']) - + ((' (' + __commodity['supplyLevel'] + ')') if 'supplyLevel' in __commodity else '') + echoLog(' - Supply: ' + str(__commodity['stock']) + + ((' (' + str(__commodity['stockBracket']) + ')') if 'stockBracket' in __commodity else '') ) echoLog(' - Sell Price: ' + str(__commodity['sellPrice'])) echoLog(' - Demand: ' + str(__commodity['demand']) - + ((' (' + __commodity['demandLevel'] + ')') if 'demandLevel' in __commodity else '') + + ((' (' + str(__commodity['demandBracket']) + ')') if 'demandBracket' in __commodity else '') ) # End example @@ -231,4 +233,4 @@ def main(): if __name__ == '__main__': - main() + main() \ No newline at end of file diff --git a/examples/Python 3.4/Client_Simple.bat b/examples/Python 3.4/Client_Simple.bat old mode 100644 new mode 100755 diff --git a/examples/Python 3.4/Client_Simple.py b/examples/Python 3.4/Client_Simple.py old mode 100644 new mode 100755