示例#1
0
 def get_by_signature(user_id, app_id):
     '''
     Get the collection.
     '''
     try:
         return TabCollect.get((TabCollect.user_id == user_id)
                               & (TabCollect.post_id == app_id))
     except:
         return None
示例#2
0
 def get_by_signature(user_id, app_id):
     '''
     Get the collection.
     '''
     try:
         return TabCollect.get((TabCollect.user_id == user_id)
                               & (TabCollect.post_id == app_id))
     except Exception as err:
         print(repr(err))
         return None
 def get_by_signature(user_id, app_id):
     '''
     :param user_id:
     :param app_id:
     :return:
     '''
     try:
         return TabCollect.get(
             (TabCollect.user_id == user_id) &
             (TabCollect.post_id == app_id)
         )
     except:
         return None