fix: Excel/CSV出力でエラーになるのを修正

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-08-09 10:47:21 +09:00
parent b1c65ff3bf
commit 2000eb6318

View File

@ -86,7 +86,7 @@ class BioSalesLotRepository(BaseRepository):
self._database.connect()
logger.debug('DB参照実行')
where_clause = self.__build_condition(parameter)
query = self.FETCH_SQL.format(where_clause=where_clause)
query = self.FETCH_SQL.format(where_clause=where_clause, limit=environment.BIO_SEARCH_RESULT_MAX_COUNT + 1)
logger.debug(f'SQL: {query}')
df = self._to_data_frame(query, parameter)
logger.debug(f'count= {len(df.index)}')