Skip to content
Snippets Groups Projects
Commit 8accc4e5 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

UPD use ot_attr to get changeable inserts

parent aa09fbf6
No related branches found
No related tags found
No related merge requests found
......@@ -39,28 +39,39 @@ async def get_available_sites(token: APIToken = Depends(check_auth), conn=Depend
@router.get('/insert_types')
async def get_insert_types(token: APIToken = Depends(check_auth), conn=Depends(get_conn)) -> list[InsertType]:
Mgr.check_token(conn, token)
searched_types = [
'Insert-284-1 ETH-10MB',
'Insert-3635-1 ISDN',
'Insert-1711 4*ISDN',
'Insert-6554-1 2*ISDN',
'Insert-4584-1 1*ISDN',
'Insert-3636-1 ETH-100MB',
'Insert-6553-1 ETH-100MB',
'Insert-3641-1 ISDN/ETH-100MB',
'Insert-1100-1 2*ISDN/ETH-100MB',
'Insert-73-1 ETH-10MB',
'Insert-47-1 ETH-100MB',
'Insert-6548-1 ETH-1GB',
'Insert-4584-1 ETH-1GB',
'Insert-1188-1 ETH-10GB',
]
ta = [{
ta = [
{
'name': 'ndcfg.module_type.list',
'idx': 'module_type_list',
'idx': 'tmp_module_type_list',
'old': {
'name_list': searched_types
'filter_params_dict': {
'attrs_list': None,
'show': True
}
}
},
{
'name': 'cntl.ot_attr_val.list',
'idx': 'ot_attr_val_list',
'inner_join_ref': {
'tmp_module_type_list': None
},
'old': {
'ot_attr_def_key_word': 'prq_insert_is_exchangeable',
'value': True,
'value_operator': 'eq',
'filter_params_dict': {
'attrs_list': None,
'show': True
}
}
},
{
'name': 'ndcfg.module_type.list',
'idx': 'module_type_list',
'inner_join_ref': {
'tmp_module_type_list': 'self',
'ot_attr_val_list': None
}
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment