mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
pep8
This commit is contained in:
parent
bfc9ec7a2b
commit
695c1a6125
2 changed files with 3 additions and 2 deletions
|
@ -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
1
lib.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue