2024-03-13 13:17:41 +00:00
|
|
|
from metadata.pool.pool_100 import POOL_100
|
2022-10-08 08:50:02 +00:00
|
|
|
from metadata.pool.pool_200 import POOL_200
|
|
|
|
from metadata.pool.pool_301 import POOL_301
|
|
|
|
from metadata.pool.pool_302 import POOL_302
|
2024-03-13 07:38:49 +00:00
|
|
|
from metadata.pool.pool_500 import POOL_500
|
2022-10-08 08:50:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
def get_pool_by_id(pool_type):
|
2024-03-13 13:17:41 +00:00
|
|
|
if pool_type == 100:
|
|
|
|
return POOL_100
|
2022-10-08 08:50:02 +00:00
|
|
|
if pool_type == 200:
|
|
|
|
return POOL_200
|
2024-03-13 10:14:03 +00:00
|
|
|
if pool_type in [301, 400]:
|
2022-10-08 08:50:02 +00:00
|
|
|
return POOL_301
|
2023-03-14 01:27:22 +00:00
|
|
|
if pool_type == 302:
|
2022-10-08 08:50:02 +00:00
|
|
|
return POOL_302
|
2024-03-13 07:38:49 +00:00
|
|
|
if pool_type == 500:
|
|
|
|
return POOL_500
|
2023-03-14 01:27:22 +00:00
|
|
|
return None
|