projects
/
gonvert
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing the writing to console, fixing a bug with TreeView search in categories...
[gonvert]
/
src
/
unit_data.py
diff --git
a/src/unit_data.py
b/src/unit_data.py
index
9cc90a4
..
5c75c57
100644
(file)
--- a/
src/unit_data.py
+++ b/
src/unit_data.py
@@
-2208,6
+2208,14
@@
def get_units_from_category(category):
return units
return units
+def get_base_unit(categoryName):
+ return UNIT_DESCRIPTIONS[categoryName][".base_unit"]
+
+
+def get_base_unit_from_category(category):
+ return category[".base_unit"]
+
+
future_dic = {
_(u"Wire Gauge"): {
".base_unit": "circular mils",
future_dic = {
_(u"Wire Gauge"): {
".base_unit": "circular mils",