Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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