From 269cfb67627ab285136ef42400bb4b450ac509b6 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 17 Mar 2018 16:48:09 -0700 Subject: [PATCH] Improve some variable names for clarity. --- etiquette/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etiquette/constants.py b/etiquette/constants.py index 80e7633..bb458d9 100644 --- a/etiquette/constants.py +++ b/etiquette/constants.py @@ -154,9 +154,9 @@ def _sql_dictify(columns): an sql row. ['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 = [