Use worms select_column.
This commit is contained in:
parent
b3390940a5
commit
82a6739768
1 changed files with 1 additions and 2 deletions
|
@ -539,8 +539,7 @@ class YCDLDB(
|
|||
# arbitrarily many states for user-defined purposes, but I kind of went
|
||||
# back on that so I'm not sure if it will be useful.
|
||||
query = 'SELECT DISTINCT state FROM videos'
|
||||
states = self.select(query)
|
||||
states = [row[0] for row in states]
|
||||
states = self.select_column(query)
|
||||
return sorted(states)
|
||||
|
||||
def load_config(self):
|
||||
|
|
Loading…
Reference in a new issue