Skip to content

Commit

Permalink
remove duplicated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahdamin committed Oct 7, 2024
1 parent f246d49 commit 27a792a
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions genotype_api/database/crud/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 27a792a

Please sign in to comment.