Commit 929a1c45db00904e9a5a27b051179895438ea37c
1 parent
1ab9aac6
[+] add 2 functions helper to create web_arg for bool and for float argument
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
web/web_arg_utils.anubis
| @@ -108,6 +108,24 @@ public define Web_arg | @@ -108,6 +108,24 @@ public define Web_arg | ||
| 108 | web_arg | 108 | web_arg |
| 109 | ( | 109 | ( |
| 110 | String name, | 110 | String name, |
| 111 | + Bool value | ||
| 112 | + )= | ||
| 113 | + web_arg(name, to_String(value)) | ||
| 114 | +. | ||
| 115 | + | ||
| 116 | +public define Web_arg | ||
| 117 | + web_arg | ||
| 118 | + ( | ||
| 119 | + String name, | ||
| 120 | + Float value | ||
| 121 | + )= | ||
| 122 | + web_arg(name, float_to_string(value, 10)) | ||
| 123 | +. | ||
| 124 | + | ||
| 125 | +public define Web_arg | ||
| 126 | + web_arg | ||
| 127 | + ( | ||
| 128 | + String name, | ||
| 111 | DB_id value | 129 | DB_id value |
| 112 | )= | 130 | )= |
| 113 | web_arg(name, to_String(value)) | 131 | web_arg(name, to_String(value)) |