Explorar o código

[indexer] Improve timestamp type check

Add minimum boundary on length
Abraham Elmahrek %!s(int64=11) %!d(string=hai) anos
pai
achega
3625306e6a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(']'):