This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '\nSchema Context Builder Prompt\n\nYou are given:\n\n engine_name: postgresql\n user_intent: along the years, how bitcoin price changed?\n raw_metadata (JSON array, new column fields included): [{"name": "coinmetrics", "type": null, "comment": 0, "row_count": 294, "relevance_score": 4.0, "columns": [{"column_name": "price", "data_type": "double precision", "is_nullable": "YES", "column_default": null, "character_maximum_length": null, "numeric_precision": 53, "numeric_scale": null, "column_comment": null, "is_primary_key": false, "relevance_score": 10.0}, {"column_name": "total_bitcoins", "data_type": "double precision", "is_nullable": "YES", "column_default": null, "character_maximum_length": null, "numeric_precision": 53, "numeric_scale": null, "column_comment": null, "is_primary_key": false, "relevance_score": 10.0}, {"column_name": "time", "data_type": "timestamp with time zone", "is_nullable": "YES", "column_default": null, "character_maximum_length": null, "numeric_precision": null, "numeric_s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "success": true, | |
| "message": "NLP2SQL conversion completed successfully", | |
| "thread_id": "73d4ca58-d32c-4498-865c-94109cfb5064", | |
| "result": { | |
| "success": true, | |
| "user_query": "what is the most recent price value of the bitcoin in the market_data table?", | |
| "workflow_completed_at": "2025-09-12T15:40:58.322220+00:00", | |
| "relevant_metadata": { | |
| "success": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "success": true, | |
| "message": "NLP2SQL conversion completed successfully", | |
| "thread_id": "dbfb5b1a-d425-4015-81bc-3e27035c999f", | |
| "result": { | |
| "success": true, | |
| "user_query": "can you sumarize the data by available products", | |
| "workflow_completed_at": "2025-09-12T17:52:46.548640+00:00", | |
| "relevant_metadata": { | |
| "success": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, Logger } from '@nestjs/common'; | |
| import { google } from 'googleapis'; | |
| import { firebaseId } from '../commons/helpers/firebase-id.function'; | |
| import { AuthorizeDomainDTO } from './dtos'; | |
| @Injectable() | |
| export class OrganizationAuthManagementService { | |
| async getAuth(): Promise<any> { | |
| return new google.auth.GoogleAuth({ | |
| scopes: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from novo_financeiro.models import * | |
| notas = Nota.objects.filter(cache_dicionario__contains='"APL01-19"') | |
| for nota in notas: | |
| dicionario = nota.dicionario_do_cache() | |
| dicionario['taxas'] = 0 | |
| nota.salva_dicionario_no_cache (dicionario) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from novo_financeiro.tasks import * | |
| nota = Nota.objects.filter(cache_dicionario__isnull=True).order_by('-id').first() | |
| manager = NotaArrematacao(nota) | |
| dicionario = manager.context() | |
| nota.salva_dicionario_no_cache(dicionario) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.utils.encoding import smart_str | |
| from django.core.mail import EmailMessage | |
| from leilao.models import * | |
| leilao = Leilao.objects.get(nome='DT01-17') | |
| arremates = leilao.arremates_do_leilao_queryset() | |
| colunas = ['Lote', 'username', 'arremate', 'cpf'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from novo_financeiro.models import * | |
| leilao = 'DIVSC05-17' | |
| for nota in Nota.objects.filter(cache_dicionario__contains=leilao): | |
| dicionario = nota.dicionario_do_cache() | |
| dicionario['taxas'] = 0 | |
| nota.cache_dicionario = json.dumps(dicionario, cls=DjangoJSONEncoder) | |
| nota.save() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from leilao.models import LanceProgramado | |
| leilao = 'SEOP15-17' | |
| lote = 2795 | |
| username = 'shirlene' | |
| LanceProgramado.objects.filter( | |
| lote__numero_do_lote_no_leilao=lote, | |
| lote__leilao__nome=leilao, | |
| user__username=username).values_list('ativo', flat=True) |
NewerOlder