diff --git a/projects/nat-archive-tool/src/nat/systems/MediaWikiSystem.kiss b/projects/nat-archive-tool/src/nat/systems/MediaWikiSystem.kiss index 926b8d0c..df4e1c18 100644 --- a/projects/nat-archive-tool/src/nat/systems/MediaWikiSystem.kiss +++ b/projects/nat-archive-tool/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/projects/nat-archive-tool/test-cpp.sh b/projects/nat-archive-tool/test-cpp.sh index de641c46..b07205de 100644 --- a/projects/nat-archive-tool/test-cpp.sh +++ b/projects/nat-archive-tool/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