Skip to content

Commit bce0e1d

Browse files
Make CdR coredata public (#804)
* No reason to hide it * Purpose: display the cdr year in Siarnaq : * in order not to hard-code it (changing it every year is bad) * in order to know easily the year Siarnaq thinks it is and catch it early if wrong * Possibly do the same with the status (for the same reasons: pretty annoying to have to use admin rights to be sure of the actual status) Co-authored-by: Maxime Lemonnier <[email protected]>
1 parent 1825452 commit bce0e1d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/modules/cdr/endpoints_cdr.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,6 @@ async def get_payment_url(
25472547
)
25482548
async def get_cdr_year(
25492549
db: AsyncSession = Depends(get_db),
2550-
user: models_users.CoreUser = Depends(is_user()),
25512550
):
25522551
return await get_core_data(coredata_cdr.CdrYear, db)
25532552

@@ -2571,7 +2570,6 @@ async def update_cdr_year(
25712570
)
25722571
async def get_status(
25732572
db: AsyncSession = Depends(get_db),
2574-
user: models_users.CoreUser = Depends(is_user()),
25752573
):
25762574
return await get_core_data(schemas_cdr.Status, db)
25772575

0 commit comments

Comments
 (0)