Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taproject.py
diff options
context:
space:
mode:
Diffstat (limited to 'taproject.py')
-rw-r--r--taproject.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/taproject.py b/taproject.py
index f0fb314..298f281 100644
--- a/taproject.py
+++ b/taproject.py
@@ -174,7 +174,13 @@ def load_block(tw, b):
if type(btype) == type((1,2)):
btype, value = btype
if btype in CONTENT_BLOCKS:
- values = [value]
+ if btype == 'number':
+ try:
+ values = [int(value)]
+ except ValueError:
+ values = [float(value)]
+ else:
+ values = [value]
else:
values = []