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
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