Improve some variable names for clarity.

master
voussoir 2018-03-17 16:48:09 -07:00
parent ffe0be21f5
commit 269cfb6762
1 changed files with 2 additions and 2 deletions

View File

@ -154,9 +154,9 @@ def _sql_dictify(columns):
an sql row. an sql row.
['test', 'toast'] -> {'test': 0, 'toast': 1} ['test', 'toast'] -> {'test': 0, 'toast': 1}
''' '''
return {key: index for (index, key) in enumerate(columns)} return {column: index for (index, column) in enumerate(columns)}
SQL_INDEX = {key: _sql_dictify(value) for (key, value) in SQL_COLUMNS.items()} SQL_INDEX = {table: _sql_dictify(columns) for (table, columns) in SQL_COLUMNS.items()}
ALLOWED_ORDERBY_COLUMNS = [ ALLOWED_ORDERBY_COLUMNS = [