Change allowed_orderby_columns from list to set; alphabetize.

This commit is contained in:
voussoir 2020-12-29 16:06:43 -08:00
parent a4a1f39ede
commit f9e7049424

View file

@ -193,19 +193,19 @@ COMMIT;
SQL_COLUMNS = sqlhelpers.extract_table_column_map(DB_INIT) SQL_COLUMNS = sqlhelpers.extract_table_column_map(DB_INIT)
SQL_INDEX = sqlhelpers.reverse_table_column_map(SQL_COLUMNS) SQL_INDEX = sqlhelpers.reverse_table_column_map(SQL_COLUMNS)
ALLOWED_ORDERBY_COLUMNS = [ ALLOWED_ORDERBY_COLUMNS = {
'extension',
'bitrate',
'width',
'height',
'ratio',
'area', 'area',
'duration', 'bitrate',
'bytes', 'bytes',
'created', 'created',
'tagged_at', 'duration',
'extension',
'height',
'random', 'random',
] 'ratio',
'tagged_at',
'width',
}
# Errors and warnings ############################################################################## # Errors and warnings ##############################################################################