console/SWSCloudCore/controllers/plans/__init__.py

16 lines
345 B
Python
Raw Normal View History

2016-05-16 09:24:27 +03:00
# 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()