mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated return a row
This commit is contained in:
parent
f5ae68d6cc
commit
e45bba96cb
1 changed files with 2 additions and 7 deletions
|
@ -22,7 +22,8 @@ class SBoQueries:
|
|||
|
||||
def names(self):
|
||||
""" Returns all the slackbuilds. """
|
||||
return list(self._names_grabbing())
|
||||
names = self.session.query(SBoTable.name).all()
|
||||
return [name[0] for name in names]
|
||||
|
||||
def slackbuild(self):
|
||||
""" Returns a slackbuild. """
|
||||
|
@ -117,9 +118,3 @@ class SBoQueries:
|
|||
if self.configs.os_arch == 'x86_64' and arch64:
|
||||
return arch64
|
||||
return arch
|
||||
|
||||
def _names_grabbing(self):
|
||||
""" Generate and returns all the slackbuilds. """
|
||||
names = self.session.query(SBoTable.name).all()
|
||||
for n in names:
|
||||
yield n[0]
|
||||
|
|
Loading…
Reference in a new issue