projects
/
gonvert
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Slowly going through functions cleaning them up. THis includes massive cleanup to...
[gonvert]
/
src
/
unit_data.py
diff --git
a/src/unit_data.py
b/src/unit_data.py
index
01565ce
..
0714972
100644
(file)
--- a/
src/unit_data.py
+++ b/
src/unit_data.py
@@
-2190,6
+2190,15
@@
_(u"Electrical Voltage"): {".base_unit": _(u"volt"),
UNIT_CATEGORIES = sorted(UNIT_DESCRIPTIONS.iterkeys())
UNIT_CATEGORIES = sorted(UNIT_DESCRIPTIONS.iterkeys())
+def get_units(category):
+ units = sorted(UNIT_DESCRIPTIONS[category].iterkeys())
+
+ # do not display .base_unit description key
+ del units[0]
+
+ return units
+
+
future_dic = {
_(u"Wire Gauge"): {
".base_unit": "circular mils",
future_dic = {
_(u"Wire Gauge"): {
".base_unit": "circular mils",