コード例 #1
0
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 []
コード例 #2
0
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')
コード例 #3
0
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')
コード例 #4
0
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')
コード例 #5
0
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')