diff --git a/src/nat/systems/MediaWikiSystem.kiss b/src/nat/systems/MediaWikiSystem.kiss index 926b8d0..df4e1c1 100644 --- a/src/nat/systems/MediaWikiSystem.kiss +++ b/src/nat/systems/MediaWikiSystem.kiss @@ -18,13 +18,13 @@ hxmlFile "extern-files/python/args.hxml" importHxFile "extern-files/python/import.hx" langProjectFile "extern-files/python/requirements.txt") - [:Array titles _ :Array props _ :String mediaWikiUrl _ :Float maxLag (or maxLag 1) :Map headers _] + [:Array titles _ :Array props _ :String mediaWikiUrl _ :String maxLag (if maxLag (Std.string maxLag) "1") :Map headers _] (Requests.get mediaWikiUrl [ =>"action" "query" =>"titles" (titles.join "|") =>"prop" (props.join "|") - =>"maxlag" (Std.string maxLag) + =>"maxlag" maxLag =>"format" "json" ] (object headers headers)))) diff --git a/test-cpp.sh b/test-cpp.sh index de641c4..b07205d 100644 --- a/test-cpp.sh +++ b/test-cpp.sh @@ -1,2 +1,2 @@ #! /bin/bash -./bin/cpp/test/TestMain \ No newline at end of file +./bin/cpp/TestMain \ No newline at end of file