Fixed for bins package checksum

This commit is contained in:
Dimitris Zlatanidis 2023-04-03 20:43:02 +03:00
parent 3f84bc47b0
commit 6401a4ed36

View file

@ -24,7 +24,7 @@ class BinQueries(Configs):
if self.name in self.black.packages():
self.name: str = ''
def count_packages(self):
def count_packages(self) -> list:
""" Counts the number of the packages. """
count = self.session.query(
BinariesTable.id).where(
@ -104,7 +104,7 @@ class BinQueries(Configs):
""" Returns the binary package checksum. """
md5: tuple = self.session.query(
BinariesTable.checksum).filter(
BinariesTable.package == self.name).where(
BinariesTable.name == self.name).where(
BinariesTable.repo == self.repo).first()
if md5: