Misc cleanup
This commit is contained in:
parent
5803efd4bb
commit
690b325884
6 changed files with 3 additions and 58 deletions
|
@ -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):
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from app import db
|
||||
from sqlalchemy.ext.hybrid import hybrid_property
|
||||
from sqlalchemy.sql import text
|
||||
from flask import abort
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue