Use worms select_column.

master
voussoir 2022-06-03 19:54:52 -07:00
parent b3390940a5
commit 82a6739768
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 2 deletions

View File

@ -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):