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
|
# 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.
|
# back on that so I'm not sure if it will be useful.
|
||||||
query = 'SELECT DISTINCT state FROM videos'
|
query = 'SELECT DISTINCT state FROM videos'
|
||||||
states = self.select(query)
|
states = self.select_column(query)
|
||||||
states = [row[0] for row in states]
|
|
||||||
return sorted(states)
|
return sorted(states)
|
||||||
|
|
||||||
def load_config(self):
|
def load_config(self):
|
||||||
|
|
Loading…
Reference in a new issue