Change allowed_orderby_columns from list to set; alphabetize.
This commit is contained in:
parent
a4a1f39ede
commit
f9e7049424
1 changed files with 9 additions and 9 deletions
|
@ -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 ##############################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue