luanpoppe commited on
Commit
837e770
Β·
1 Parent(s): df36d7a

feat: renomeando app para gerar_documento

Browse files
{gerar_relatorio_modelo_usuario β†’ _antigos}/__init__.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario/migrations β†’ _antigos/resumos}/__init__.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario β†’ _antigos/resumos}/admin.py RENAMED
File without changes
{resumos β†’ _antigos/resumos}/apps.py RENAMED
File without changes
{resumos β†’ _antigos/resumos/migrations}/__init__.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario β†’ _antigos/resumos}/models.py RENAMED
File without changes
{resumos β†’ _antigos/resumos}/serializer.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario β†’ _antigos/resumos}/tests.py RENAMED
File without changes
{resumos β†’ _antigos/resumos}/views.py RENAMED
File without changes
{resumos/migrations β†’ gerar_documento}/__init__.py RENAMED
File without changes
{resumos β†’ gerar_documento}/admin.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario β†’ gerar_documento}/apps.py RENAMED
@@ -3,4 +3,4 @@ from django.apps import AppConfig
3
 
4
  class GerarRelatorioModeloUsuarioConfig(AppConfig):
5
  default_auto_field = 'django.db.models.BigAutoField'
6
- name = 'gerar_relatorio_modelo_usuario'
 
3
 
4
  class GerarRelatorioModeloUsuarioConfig(AppConfig):
5
  default_auto_field = 'django.db.models.BigAutoField'
6
+ name = "gerar_documento"
gerar_documento/migrations/__init__.py ADDED
File without changes
{resumos β†’ gerar_documento}/models.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario β†’ gerar_documento}/serializer.py RENAMED
@@ -1,5 +1,5 @@
1
  from rest_framework import serializers
2
- from resumos.serializer import ResumoCursorSerializer
3
  from _utils.gerar_relatorio_modelo_usuario.prompts import (
4
  system_prompt_modelo,
5
  system_prompt_relatorio,
 
1
  from rest_framework import serializers
2
+ from _antigos.resumos.serializer import ResumoCursorSerializer
3
  from _utils.gerar_relatorio_modelo_usuario.prompts import (
4
  system_prompt_modelo,
5
  system_prompt_relatorio,
{resumos β†’ gerar_documento}/tests.py RENAMED
File without changes
{gerar_relatorio_modelo_usuario β†’ gerar_documento}/views.py RENAMED
File without changes
ragas_api/serializer.py CHANGED
@@ -1,5 +1,5 @@
1
  from rest_framework import serializers
2
- from gerar_relatorio_modelo_usuario.serializer import ResumoCursorCompeltoSerializer
3
 
4
 
5
  class RagasSerializer(ResumoCursorCompeltoSerializer):
 
1
  from rest_framework import serializers
2
+ from gerar_documento.serializer import ResumoCursorCompeltoSerializer
3
 
4
 
5
  class RagasSerializer(ResumoCursorCompeltoSerializer):
setup/installed_apps.py CHANGED
@@ -13,8 +13,7 @@ config_apps = [
13
  ]
14
 
15
  INSTALLED_APPS = config_apps + [
16
- "resumos",
17
  "modelos_usuarios",
18
  "ragas_api",
19
- "gerar_relatorio_modelo_usuario",
20
  ]
 
13
  ]
14
 
15
  INSTALLED_APPS = config_apps + [
 
16
  "modelos_usuarios",
17
  "ragas_api",
18
+ "gerar_documento",
19
  ]
setup/urls.py CHANGED
@@ -4,11 +4,10 @@ from rest_framework import routers
4
  from drf_spectacular.views import SpectacularSwaggerView, SpectacularAPIView
5
 
6
 
7
- from gerar_relatorio_modelo_usuario.views import ResumoSimplesCursorCompletoView
8
- from resumos.views import (
9
- ResumoView,
10
  ResumoSimplesCursorView,
11
- )
12
  from ragas_api.views import RagasFromTextView, RagasView
13
  from modelos_usuarios.views import (
14
  ListCreateModeloUsuarioView,
@@ -26,8 +25,6 @@ urlpatterns = [
26
  ),
27
  path("admin/", admin.site.urls),
28
  path("", include(router.urls)),
29
- path("resumo", ResumoView.as_view(), name="summary-pdf"),
30
- path("resumo/cursor", ResumoSimplesCursorView.as_view(), name="summary-cursor-pdf"),
31
  path(
32
  "gerar-documento",
33
  ResumoSimplesCursorCompletoView.as_view(),
 
4
  from drf_spectacular.views import SpectacularSwaggerView, SpectacularAPIView
5
 
6
 
7
+ from gerar_documento.views import ResumoSimplesCursorCompletoView
8
+ from _antigos.resumos.views import (
 
9
  ResumoSimplesCursorView,
10
+ ) # NΓ£o sei por quΓͺ, mas se remover esta importação, o endpoint de gerar_documentos para de funcionar
11
  from ragas_api.views import RagasFromTextView, RagasView
12
  from modelos_usuarios.views import (
13
  ListCreateModeloUsuarioView,
 
25
  ),
26
  path("admin/", admin.site.urls),
27
  path("", include(router.urls)),
 
 
28
  path(
29
  "gerar-documento",
30
  ResumoSimplesCursorCompletoView.as_view(),