Misc cleanup

This commit is contained in:
Matthew Dillon 2015-10-10 14:31:58 -07:00
parent 5803efd4bb
commit 690b325884
6 changed files with 3 additions and 58 deletions

View file

@ -1,7 +1,6 @@
from flask_wtf import Form
from wtforms import IntegerField, SelectField
from wtforms.validators import NumberRange, Required
from sqlalchemy import func
class AKIYearField(IntegerField):

View file

@ -1,5 +1,4 @@
from app import db
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.sql import text
from flask import abort

View file

@ -77,19 +77,3 @@ SELECT c.name, c.latitude, c.longitude, c.northing, c.easting, t.data
INTO new_communities
FROM temp05 t
INNER JOIN communities c ON c.id=t.community_id;
select distinct on (doc->'model', doc->'datatype', doc->'scenario') doc->'model', doc->'datatype', doc->'scenario' from new_communities c, jsonb_array_elements(c.data) with ordinality t1(doc, rn);