From 3898f19f14b8e7b6bf0e539e1e6bcb7a9ca33ace Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Sun, 9 Apr 2017 07:45:51 -0500 Subject: ugly hacks, pretty results --- src/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/utils.py b/src/utils.py index a193cb4..20c8a0d 100644 --- a/src/utils.py +++ b/src/utils.py @@ -2,9 +2,9 @@ from src import schema def ordered_keys(subscriptable_object, *keys): """ - returns a list with the values for KEYS in the order KEYS are provided, + returns a tuple with the values for KEYS in the order KEYS are provided, from SUBSCRIPTABLE_OBJECT. Useful for working with dictionaries when - parameter ordering is important. Used for sql transactions + parameter ordering is important. Used for sql transactions. """ return tuple([subscriptable_object[key] for key in keys]) @@ -12,7 +12,7 @@ def ordered_keys(subscriptable_object, *keys): def schema_values(scheme, obj): """ Returns the values in the database order for a given - schema. Used for sql transactions + schema. Used for sql transactions. """ if scheme == "user": return ordered_keys(obj, -- cgit v1.2.3