Browse Source

[indexer] Improve timestamp type check

Add minimum boundary on length
Abraham Elmahrek 11 years ago
parent
commit
3625306e6a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/indexer/src/indexer/utils.py

+ 1 - 1
desktop/libs/indexer/src/indexer/utils.py

@@ -90,7 +90,7 @@ def get_field_types(row):
     if not value:
       raise ValueError()
 
-    if len(value) > 50:
+    if len(value) > 50 or len(value) < 3:
       raise ValueError()
 
     if value.startswith('[') and value.endswith(']'):