Skip to content
Snippets Groups Projects
Commit a3b422ec authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Fixes slight issue with timestamp validation

parent 4bf7cc89
Branches
Tags
No related merge requests found
......@@ -100,7 +100,7 @@ def validate_json_queries_body(body):
assert GRAPH_BUILD_SF_QUERY_PARAMS == set(query_data.keys()), "Invalid query data for service function {0} in the JSON query document".format(sf)
assert type(body["from"]) == int, "'from' parameter must be a timestamp integer"
assert body["from"] > 0, "'from' parameter must be a positive timestamp integer"
assert body["from"] >= 0, "'from' parameter must be a positive timestamp integer or 0"
assert type(body["to"]) == int, "'to' parameter must be a timestamp integer"
assert body["to"] > body["from"], "'to' parameter timestamp must be greater than 'from' parameter timestamp"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment