コード例 #1
0
ファイル: mcatalog.py プロジェクト: Geoion/TorCMS
 def query_all(self, with_count = False, by_order = False):
     if with_count == True:
         recs = CabCatalog.select().order_by(CabCatalog.post_count.desc())
     elif by_order == True:
         recs = CabCatalog.select().order_by(CabCatalog.order)
     else:
         recs = CabCatalog.select().order_by(CabCatalog.name)
     return (recs)
コード例 #2
0
ファイル: mcatalog.py プロジェクト: Geoion/TorCMS
 def query_field_count(self, limit_num):
     recs = CabCatalog.select().order_by(CabCatalog.app_count.desc()).limit(limit_num)
     return (recs)
コード例 #3
0
ファイル: mcatalog.py プロジェクト: ifcheung2012/TorCMS
 def query_field_count(self, limit_num):
     recs = CabCatalog.select().order_by(
         CabCatalog.app_count.desc()).limit(limit_num)
     return (recs)
コード例 #4
0
ファイル: mcatalog.py プロジェクト: ifcheung2012/TorCMS
 def query_all(self, with_count=False):
     if with_count == True:
         recs = CabCatalog.select().order_by(CabCatalog.post_count.desc())
     else:
         recs = CabCatalog.select().order_by(CabCatalog.name)
     return (recs)