aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-09 07:45:51 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-09 07:45:51 -0500
commit3898f19f14b8e7b6bf0e539e1e6bcb7a9ca33ace (patch)
tree081d413bb092c44d13189029ff0c0825f4f70888 /src
parent1b670575275a2111272599d4687aff8e944f875e (diff)
downloadbbj-3898f19f14b8e7b6bf0e539e1e6bcb7a9ca33ace.tar.gz
ugly hacks, pretty results
Diffstat (limited to 'src')
-rw-r--r--src/utils.py6
1 files changed, 3 insertions, 3 deletions
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,
Un proyecto texto-plano.xyz