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
pr0nstar
2026-04-21 15:04:07 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a84b354924dff6d184416b02e46bd0657fb08e00
a84b3549
1 parent
f6c8a251
XVI
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
main.py
routers/daily.py
routers/entity.py
routers/project.py
schema.py
main.py
View file @
a84b354
...
...
@@ -47,7 +47,7 @@ app = FastAPI(
],
),
],
root_path
=
'/api'
root_path
=
'/
prespuesto/
api'
)
app
.
include_router
(
entity
.
router_entidad
)
...
...
@@ -59,7 +59,7 @@ app.include_router(classifier.router_finfun)
app
.
include_router
(
classifier_income
.
router_rubro
)
app
.
include_router
(
classifier_income
.
router_organismo
)
app
.
include_router
(
project
.
router
)
app
.
include_router
(
daily
.
router
)
#
app.include_router(daily.router)
app
.
include_router
(
search
.
router
)
app
.
include_router
(
private_metrics
.
router
)
...
...
routers/daily.py
View file @
a84b354
...
...
@@ -9,8 +9,9 @@ from presupuestov1.routers._decorators import not_found
router
=
APIRouter
(
prefix
=
'/diario'
,
prefix
=
'/
_
diario'
,
tags
=
[
'diario'
],
include_in_schema
=
False
,
)
...
...
routers/entity.py
View file @
a84b354
...
...
@@ -88,7 +88,7 @@ def fetch_da(
da_id
:
str
,
db
:
Session
=
Depends
(
model
.
get_db
),
):
gastos_ingresos
=
get_resumen
(
db
,
'entidad_da'
,
ubigeo
_id
)
gastos_ingresos
=
get_resumen
(
db
,
'entidad_da'
,
da
_id
)
return
gastos_ingresos
...
...
routers/project.py
View file @
a84b354
...
...
@@ -75,7 +75,7 @@ def fetch_programa_proyecto_proyectos(
def
fetch_programa_proyecto_objetos
(
project_id
:
int
,
db
:
Session
=
Depends
(
model
.
get_db
),
query
:
schema
.
QueryParams
=
Depends
(),
query
:
schema
.
QueryParams
Paginated
=
Depends
(),
):
return
get_clasificadores
(
db
,
'objeto'
,
project_id
,
query
)
...
...
@@ -84,7 +84,7 @@ def fetch_programa_proyecto_objetos(
def
fetch_programa_proyecto_finfuns
(
project_id
:
int
,
db
:
Session
=
Depends
(
model
.
get_db
),
query
:
schema
.
QueryParams
=
Depends
(),
query
:
schema
.
QueryParams
Paginated
=
Depends
(),
):
return
get_clasificadores
(
db
,
'finfun'
,
project_id
,
query
)
...
...
@@ -93,7 +93,7 @@ def fetch_programa_proyecto_finfuns(
def
fetch_programa_proyecto_actecos
(
project_id
:
int
,
db
:
Session
=
Depends
(
model
.
get_db
),
query
:
schema
.
QueryParams
=
Depends
(),
query
:
schema
.
QueryParams
Paginated
=
Depends
(),
):
return
get_clasificadores
(
db
,
'acteco'
,
project_id
,
query
)
...
...
schema.py
View file @
a84b354
...
...
@@ -20,6 +20,10 @@ class QueryParams(BaseModel):
gestion
:
Optional
[
int
]
=
Query
(
default
=
None
)
nivel
:
Optional
[
str
]
=
Query
(
default
=
None
)
class
QueryParamsPaginated
(
QueryParams
):
page
:
Optiona
[
int
]
=
Query
(
default
=
None
)
class
DailyParams
(
BaseModel
):
transferencias
:
Optional
[
bool
]
=
Query
(
default
=
False
)
dias
:
Optional
[
int
]
=
Query
(
default
=
None
)
...
...
Please
register
or
login
to post a comment