def get_pic_likes_by_picture_id(row_id): if tf.validate_number(row_id): rows = tf.get_rows_by_column(PictureLike, row_id, 'PictureId') if rows is not None: return rows else: return []
def get_locations_by_category_id(row_id): if tf.validate_number(row_id): return tf.get_rows_by_column(Location, row_id, col_name='CategoryId')
def get_locations_by_user_id(row_id): if tf.validate_number(row_id): return tf.get_rows_by_column(Location, row_id, col_name='UserId')
def get_pictures_by_location_id(row_id): if tf.validate_number(row_id): return tf.get_rows_by_column(Picture, row_id, col_name='LocationId')
def get_pictures_by_user_id(row_id): if tf.validate_number(row_id): return tf.get_rows_by_column(Picture, row_id, col_name='UserId')