Fixed the regression with the map, and two issues in autogenerated code

This commit is contained in:
Simon Brooke 2018-07-04 00:14:28 +01:00
parent 3a49e50a51
commit ff5c78d030
42 changed files with 668 additions and 320 deletions

View file

@ -25,8 +25,8 @@
CREATE FUNCTION compute_locality() RETURNS trigger AS $compute_locality$
BEGIN
NEW.locality = (10000 * floor (NEW.latitude * 1000)) -
(NEW.longitude * 1000);
NEW.locality = (1000 * floor(NEW.latitude * 100)) -
floor(NEW.longitude * 100);
RETURN NEW;
END;
$compute_locality$ LANGUAGE plpgsql;

View file

@ -1,7 +1,7 @@
------------------------------------------------------------------------
-- File queries.sql
--
-- autogenerated by adl.to-hugsql-queries at 2018-07-03T12:23:50.486Z
-- autogenerated by adl.to-hugsql-queries at 2018-07-03T23:08:18.480Z
--
-- See [Application Description
-- Language](https://github.com/simon-brooke/adl).

View file

@ -5,7 +5,7 @@
--
-- auto-generated by [Application Description Language framework]
--
-- (https://github.com/simon-brooke/adl) at 20180703T122351.367Z
-- (https://github.com/simon-brooke/adl) at 20180703T230819.494Z
--
--
-- A web-app intended to be used by canvassers campaigning for a