From 27a792a817e91aa336c2601178b2b47715aa11ef Mon Sep 17 00:00:00 2001 From: ahdamin Date: Mon, 7 Oct 2024 22:35:38 +0200 Subject: [PATCH] remove duplicated functions --- genotype_api/database/crud/read.py | 36 ------------------------------ 1 file changed, 36 deletions(-) diff --git a/genotype_api/database/crud/read.py b/genotype_api/database/crud/read.py index 906247f..51cee52 100644 --- a/genotype_api/database/crud/read.py +++ b/genotype_api/database/crud/read.py @@ -268,39 +268,3 @@ async def get_snps_by_limit_and_skip(self, skip: int, limit: int) -> list[SNP]: ) result = await self.session.execute(filtered_query) return result.scalars().all() - - async def get_snps_by_limit_and_skip(self, skip: int, limit: int) -> list[SNP]: - snps: Query = self._get_query(SNP) - filter_functions = [SNPFilter.SKIP_AND_LIMIT] - filtered_query = apply_snp_filter( - snps=snps, filter_functions=filter_functions, skip=skip, limit=limit - ) - result = await self.session.execute(filtered_query) - return result.scalars().all() - - async def get_snps_by_limit_and_skip(self, skip: int, limit: int) -> list[SNP]: - snps: Query = self._get_query(SNP) - filter_functions = [SNPFilter.SKIP_AND_LIMIT] - filtered_query = apply_snp_filter( - snps=snps, filter_functions=filter_functions, skip=skip, limit=limit - ) - result = await self.session.execute(filtered_query) - return result.scalars().all() - - async def get_snps_by_limit_and_skip(self, skip: int, limit: int) -> list[SNP]: - snps: Query = self._get_query(SNP) - filter_functions = [SNPFilter.SKIP_AND_LIMIT] - filtered_query = apply_snp_filter( - snps=snps, filter_functions=filter_functions, skip=skip, limit=limit - ) - result = await self.session.execute(filtered_query) - return result.scalars().all() - - async def get_snps_by_limit_and_skip(self, skip: int, limit: int) -> list[SNP]: - snps: Query = self._get_query(SNP) - filter_functions = [SNPFilter.SKIP_AND_LIMIT] - filtered_query = apply_snp_filter( - snps=snps, filter_functions=filter_functions, skip=skip, limit=limit - ) - result = await self.session.execute(filtered_query) - return result.scalars().all()