diff --git a/api/v1/getList.py b/api/v1/getList.py index 3117925..e994c62 100644 --- a/api/v1/getList.py +++ b/api/v1/getList.py @@ -16,8 +16,7 @@ class handler(asyncTornado.asyncRequestHandler): } ARGS_VALIDATION = { - validatorHelper.HEX: ["file_hash"], - validatorHelper.INT: ["file_version", "timestamp"] + validatorHelper.NO_VAL: ["file_hash", "file_version", "timestamp"] } SQL_STRUCT = { diff --git a/helpers/validatorHelper.py b/helpers/validatorHelper.py index 6dcd40e..23288f8 100644 --- a/helpers/validatorHelper.py +++ b/helpers/validatorHelper.py @@ -10,4 +10,7 @@ def DEC(data): return str.isdecimal(data) def STR(data): - return str.isalpha \ No newline at end of file + return str.isalpha + +def NO_VAL(data): + return True \ No newline at end of file