def getImageData(self, comic_id, pagenum):
        #TODO handle errors in this func!
        session = self.application.dm.Session()
        obj = session.query(Comic).filter(Comic.id == int(comic_id)).first()
        image_data = None
        default_img_file = AppFolders.imagePath("default.jpg")

        if obj is not None:
            if obj.page_count < int(pagenum):
                ca = self.application.getComicArchive(obj.path)
                image_data = ca.getPage(int(pagenum))
    
        if image_data is None:
            with open(default_img_file, 'rb') as fd:
                image_data = fd.read()
            
        return image_data
dataset/ETHPy150Open beville/ComicStreamer/comicstreamerlib/server.py/ImageAPIHandler.getImageData/swapped operands of `<`