PamGram/metadata/pool/pool.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
399 B
Python
Raw Normal View History

2023-04-27 12:25:06 +00:00
from metadata.pool.pool_1 import POOL_1
from metadata.pool.pool_2 import POOL_2
from metadata.pool.pool_11 import POOL_11
from metadata.pool.pool_12 import POOL_12
2022-10-08 08:50:02 +00:00
def get_pool_by_id(pool_type):
2023-04-27 12:25:06 +00:00
if pool_type == 1:
return POOL_1
elif pool_type == 2:
return POOL_2
if pool_type == 11:
return POOL_11
if pool_type == 12:
return POOL_12
return None