We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add wallet_withdrawals
gcp-database-as-a-service-stock-markets/data_service/views/wallet.py
Line 312 in 0a8e527
if await self.can_update_wallet_async(uid=uid) is True: wallet_instance: WalletModel = WalletModel.query(WalletModel.uid == uid).get_async().get_result() if isinstance(wallet_instance, WalletModel): if isinstance(add, int): wallet_instance.available_funds.amount += add if isinstance(sub, int): wallet_instance.available_funds.amount -= sub key = wallet_instance.put_async().get_result() if key is None: message: str = "General error updating database" raise DataServiceError(status=500, description=message) message: str = "Successfully created transaction" return jsonify({'status': True, 'payload': wallet_instance.to_dict(), 'message': message}), 200 message: str = "Unable to find wallet" return jsonify({'status': False, 'message': message}), 500 # TODO add wallet_withdrawals
ade0347cce800d207fe5593d26f82fe717324578
The text was updated successfully, but these errors were encountered:
No branches or pull requests
add wallet_withdrawals
gcp-database-as-a-service-stock-markets/data_service/views/wallet.py
Line 312 in 0a8e527
ade0347cce800d207fe5593d26f82fe717324578
The text was updated successfully, but these errors were encountered: