Use worms select_column.

This commit is contained in:
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

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