Skip to content

Instantly share code, notes, and snippets.

@aib
aib / aib.py
Last active November 30, 2016 16:38 — forked from doobeh/aib.py
add_url_rule
from flask import Flask, request, jsonify
app = Flask(__name__)
app.secret_key = 'aib'
def homer():
def home():
return 'Ok'
return home
--
-- Table structure for table "site_cities"
--
DROP TABLE IF EXISTS "site_cities" CASCADE;
CREATE TABLE "site_cities" (
"city_id" serial NOT NULL,
"city_name" varchar(20) NOT NULL,
"plate_code" smallint NOT NULL,
"area_code" smallint NOT NULL,
"lat" decimal(20,8) NOT NULL,