Open freelancing-solutions opened 3 years ago
fix bug Stock and Broker would Dicts not Instances of Stock and Broker
https://github.com/freelancing-solutions/gcp-database-as-a-service-stock-markets/blob/f9f1357be0b62f95829c1408c1fe206d315bd137/data_service/views/stocks.py#L609
broker: Broker = stock_model['broker'] else: return jsonify({'status': False, 'message': 'Broker is required'}), 500 # TODO fix bug Stock and Broker would Dicts not Instances of Stock and Broker stock_model_instance: StockModel = StockModel.query(StockModel.transaction_id == transaction_id).get() if isinstance(stock_model_instance, StockModel): stock_model = stock_model_instance stock_model.transaction_id = transaction_id stock_model.exchange_id = exchange_id stock_model.stock = stock
aea0e99492b5e76d744b42c43d2146d52c99ff3f
fix bug Stock and Broker would Dicts not Instances of Stock and Broker
https://github.com/freelancing-solutions/gcp-database-as-a-service-stock-markets/blob/f9f1357be0b62f95829c1408c1fe206d315bd137/data_service/views/stocks.py#L609
aea0e99492b5e76d744b42c43d2146d52c99ff3f