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
Send response here
gcp-database-as-a-service-stock-markets/data_service/views/helpdesk.py
Line 429 in 0a8e527
'message': 'successfully updated ticket'}), 200 return jsonify({'status': False, 'message': 'Unable to find ticket'}), 500 @use_context @handle_view_errors async def add_response_async(self, ticket_id: str, subject: str, message: str) -> tuple: """ find ticket add response """ ticket_instance: Ticket = Ticket.query( Ticket.ticket_id == ticket_id).get_async().get_result() if isinstance(ticket_instance, Ticket): ticket_instance.response_sent = True key = ticket_instance.put_async().get_result() # TODO Send response here if key is None: return jsonify({'status': False, 'message': 'General error updating database'}), 500 return jsonify({'status': True, 'payload': ticket_instance.to_dict(), 'message': 'successfully updated ticket'}), 200 return jsonify({'status': False, 'message': 'Unable to find ticket'}), 500 @use_context @handle_view_errors def get_all_tickets(self) -> tuple: tickets_list: typing.List[dict] = [ticket.to_dict() for ticket in Ticket.query().fetch()] return jsonify({'status': True, 'payload': tickets_list, 'message': 'successfully returned tickets'}), 200 @use_context @handle_view_errors async def get_all_tickets_async(self) -> tuple: tickets_list: typing.List[dict] = [ticket.to_dict() for ticket in Ticket.query().fetch_async().get_result()] return jsonify({'status': True, 'payload': tickets_list, 'message': 'successfully returned tickets'}), 200 @use_context @handle_view_errors def get_unresolved_tickets(self) -> tuple:
11e96fd9dcefe2178a3761fbfcc96ed260990646
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Send response here
gcp-database-as-a-service-stock-markets/data_service/views/helpdesk.py
Line 429 in 0a8e527
11e96fd9dcefe2178a3761fbfcc96ed260990646
The text was updated successfully, but these errors were encountered: