This commit is contained in:
JesseBot 2015-10-22 20:04:36 +00:00
parent bfc9ec7a2b
commit 695c1a6125
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# production jessebot.com python file
from lib import get_global_variable
import logging
import logging
from bottle import redirect, request, response, route
from bottle import run, static_file, template
import sys
@ -31,7 +31,7 @@ def about():
@route('/legacy')
def legacy():
redirect ("http://legacy.jessebot.com")
redirect("http://legacy.jessebot.com")
@route('/hate')

1
lib.py
View file

@ -1,5 +1,6 @@
import yaml
def get_global_variable(global_variable):
""" gets global variable given string variable name"""
with open('./config.yaml', 'r') as f: