예제 #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
예제 #3
0
 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