16 lines
345 B
Python
16 lines
345 B
Python
|
# coding: utf-8
|
||
|
|
||
|
from SWSCloudCore.models import PlansVMs
|
||
|
|
||
|
|
||
|
class ControllerPlans(object):
|
||
|
def get(self, status=None):
|
||
|
"""
|
||
|
Тарифные планы
|
||
|
:param status:
|
||
|
:return:
|
||
|
"""
|
||
|
if status:
|
||
|
return PlansVMs.select().where(PlansVMs.status == status)
|
||
|
return PlansVMs.select()
|