Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Gabriel Weisse
/
presupuestov1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
root
2026-07-29 09:51:35 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
54d1e2d3502222ce884553b78355a0e20732d788
54d1e2d3
1 parent
27a9950d
da fak fixes
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
9 deletions
models/ubigeo.py
routers/entity.py
schemas/__init__.py
schemas/acteco.py
schemas/finfun.py
schemas/objeto.py
schemas/ubigeo.py
models/ubigeo.py
View file @
54d1e2d
...
...
@@ -10,7 +10,7 @@ from sqlalchemy import (
MetaData
,
)
class
Proyect
oResumenes
(
Base
):
class
Ubige
oResumenes
(
Base
):
__tablename__
=
"ubigeo_resumenes"
__table_args__
=
(
Index
(
"idx_proyecto_resumenes_gestion"
,
"gestion"
),
...
...
@@ -27,3 +27,4 @@ class ProyectoResumenes(Base):
monto
:
Mapped
[
float
|
None
]
=
mapped_column
(
Numeric
(
30
,
15
))
per_capita
:
Mapped
[
float
|
None
]
=
mapped_column
(
Numeric
)
ranking
:
Mapped
[
int
|
None
]
=
mapped_column
(
Integer
)
n_entidades
:
Mapped
[
int
|
None
]
=
mapped_column
(
Integer
)
...
...
routers/entity.py
View file @
54d1e2d
...
...
@@ -70,10 +70,10 @@ def fetch_ubigeo_todo(
db
:
Session
=
Depends
(
model
.
get_db
),
query
:
schema
.
QueryParams
=
Depends
(),
):
gestion
=
query
.
gestion
i
s
not
None
else
0
gestion
=
query
.
gestion
i
f
(
query
.
gestion
is
not
None
)
else
0
UbigeoResumenesSchema
=
schemas
.
ubigeo
.
UbigeoResumenes
UbigeoResumenes
=
model
.
ubigeo
.
UbigeoResumenes
UbigeoResumenes
=
model
s
.
ubigeo
.
UbigeoResumenes
schema_fields
=
UbigeoResumenesSchema
.
model_fields
.
keys
()
cols
=
[
getattr
(
UbigeoResumenes
,
name
)
for
name
in
schema_fields
]
...
...
schemas/__init__.py
View file @
54d1e2d
...
...
@@ -7,6 +7,6 @@ from . import (
rubro
,
treemap
,
project
,
entity
,
entity
,
ubigeo
,
daily
,
)
...
...
schemas/acteco.py
View file @
54d1e2d
...
...
@@ -32,8 +32,9 @@ class ActecoEstado(OrmBaseModel):
class
ActecoEntidad
(
OrmBaseModel
):
gestion
:
int
acteco
:
str
entidad
:
int
nivel
:
str
|
None
entidad
:
int
entidad_desc
:
str
|
None
monto
:
float
|
None
per_capita
:
float
|
None
ranking
:
int
|
None
...
...
schemas/finfun.py
View file @
54d1e2d
...
...
@@ -40,8 +40,9 @@ class FinfunEntidad(OrmBaseModel):
gestion
:
int
finfun
:
str
entidad
:
int
nivel
:
str
|
None
monto
:
float
|
None
entidad_desc
:
str
|
None
nivel
:
str
|
None
per_capita
:
float
|
None
ranking
:
int
|
None
prop
:
float
|
None
...
...
schemas/objeto.py
View file @
54d1e2d
...
...
@@ -40,8 +40,9 @@ class ObjetoEntidad(OrmBaseModel):
gestion
:
int
objeto
:
str
entidad
:
int
nivel
:
str
|
None
monto
:
float
|
None
entidad_desc
:
str
|
None
nivel
:
str
|
None
per_capita
:
float
|
None
ranking
:
int
|
None
prop
:
float
|
None
...
...
schemas/ubigeo.py
View file @
54d1e2d
...
...
@@ -9,7 +9,7 @@ class UbigeoResumenes(OrmBaseModel):
ubigeo
:
str
desc_ubigeo
:
str
desc_departamento
:
str
mont
:
float
per_capita
:
str
mont
o
:
float
per_capita
:
float
ranking
:
int
n_entidades
:
int
...
...
Please
register
or
login
to post a comment