fmt
This commit is contained in:
parent
6df2a74d08
commit
4d06d08a03
2 changed files with 8 additions and 8 deletions
|
|
@ -345,14 +345,14 @@ let babillard_post request =
|
|||
; ("thread-comment", [ (_, comment) ])
|
||||
]
|
||||
| `Ok
|
||||
(("alt", [ (_, alt) ])
|
||||
( ("alt", [ (_, alt) ])
|
||||
:: ("file", file)
|
||||
:: ("lat-input", [ (_, lat) ])
|
||||
:: ("lng-input", [ (_, lng) ])
|
||||
:: ("subject", [ (_, subject) ])
|
||||
:: ("tags", [ (_, tags) ])
|
||||
:: ("thread-comment", [ (_, comment) ])
|
||||
:: ([] as categories) ) -> (
|
||||
:: ("lat-input", [ (_, lat) ])
|
||||
:: ("lng-input", [ (_, lng) ])
|
||||
:: ("subject", [ (_, subject) ])
|
||||
:: ("tags", [ (_, tags) ])
|
||||
:: ("thread-comment", [ (_, comment) ])
|
||||
:: ([] as categories) ) -> (
|
||||
let categories = List.map snd categories in
|
||||
match (Float.of_string_opt lat, Float.of_string_opt lng) with
|
||||
| None, _ -> render_unsafe "Invalide coordinate" request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue