예제 #1
0
def rebuild():
    manage = Manage(app)
    manage.reset_local_persistence()
    manage.build_clean_persistence()
    manage.populate_persistence()
예제 #2
0
from flask import Flask
import random

import utils
import models
import actions

from manage import Manage

import logging
from datetime import datetime

app = Flask(__name__)
manage = Manage(app)
if not manage.check_persistence_exists():
    manage.build_clean_persistence()
    manage.populate_persistence()

### NON OPEN ACTIVE BOOKING API ENDPOINT ###


@app.route("/", methods=["GET"])
def index():
    return utils.error_response('nothing_to_see_here')


### OPEN ACTIVE BOOKING API ENDPOINTS ###

### GET functions ###