Skip to content

Instantly share code, notes, and snippets.

View Deniallugo's full-sized avatar

Danil Deniallugo

  • Remote
View GitHub Profile
{
'data': {
'__schema': {
'queryType': {
'name': 'Query'
},
'mutationType': {
'name': 'Mutation'
},
'subscriptionType': None,
{'data': {'__schema': {'queryType': {'name': 'Query'}, 'mutationType': {'name': 'Mutation'}, 'subscriptionType': None, 'types': [{'kind': 'OBJECT', 'name': 'Query', 'description': None, 'fields': [{'name': 'User', 'description': None, 'args': [], 'type': {'kind': 'OBJECT', 'name': 'UserType', 'ofType': None}, 'isDeprecated': False, 'deprecationReason': None}, {'name': 'allUser', 'description': None, 'args': [], 'type': {'kind': 'LIST', 'name': None, 'ofType': {'kind': 'OBJECT', 'name': 'UserType', 'ofType': None}}, 'isDeprecated': False, 'deprecationReason': None}], 'inputFields': None, 'interfaces': [], 'enumValues': None, 'possibleTypes': None}, {'kind': 'OBJECT', 'name': 'UserType', 'description': None, 'fields': [{'name': 'firstName', 'description': None, 'args': [], 'type': {'kind': 'SCALAR', 'name': 'String', 'ofType': None}, 'isDeprecated': False, 'deprecationReason': None}, {'name': 'lastName', 'description': None, 'args': [], 'type': {'kind': 'SCALAR', 'name': 'String', 'ofType': None}, 'isDeprecated
if full:
message = BotMessage.objects.get(type='order_message')
buttons = message.buttons.all()
updated_buttons = {
buttons.get('res_good'): dict(
type='res_good',
price=good_office.pk,
item="{}-{}-{}".format(good_office.pk,
good_office.branch_office.pk
or "",