virgil/commit
FIX limit and offset parameters. set type to number
author | Michiel Hildebrand |
---|---|
Tue Jul 2 17:16:24 2013 +0200 | |
committer | Michiel Hildebrand |
Tue Jul 2 17:16:24 2013 +0200 | |
commit | 820b9c1aa9711942d04aab2195d8d43468d9b39f |
tree | b9b0909e7ffffcf71a2710277a68b889d37cdb1d |
parent | fd8a2317c0dfe6ee37b09ccfa0871b67b9f85e17 |
Diff style: patch stat
diff --git a/api/reactions.pl b/api/reactions.pl index d3f7663..917fe80 100644 --- a/api/reactions.pl +++ b/api/reactions.pl @@ -18,9 +18,9 @@ http_reactions(Request) :- [list(atom) ]), limit(Limit, - [default(100)]), + [number, default(100)]), offset(Offset, - [default(0)]) + [number, default(0)]) ]), drug_reaction_counts(DrugNames, Reactions0), keysort(Reactions0, Reactions1), diff --git a/api/reports.pl b/api/reports.pl index 4b95550..0ba40eb 100644 --- a/api/reports.pl +++ b/api/reports.pl @@ -24,9 +24,9 @@ http_reports(Request) :- [list(atom) ]), limit(Limit, - [default(100)]), + [number,default(100)]), offset(Offset, - [default(0)]) + [number,default(0)]) ]), findall(R, report(Drugs, Reactions, [], R), Reports0), sort(Reports0, Reports),