Skip to content

Commit

Permalink
fix: None type
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobiform committed Apr 17, 2024
1 parent 0500508 commit 626ecf5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,6 @@
app = Quart(__name__)
config = None

# Html header jinja2 template
html_header = '''
<!DOCTYPE html>
<html>
<head>
<title>'''+config['app_name']+'''</title>
<script src="//unpkg.com/force-graph"></script>
<link rel="stylesheet" href="static/style.css">
</head>
<body>
'''

# Html footer jinja2 template
html_footer = '''
</body>
</html>
'''

# Async setup function to load configs and create secrets
@app.before_serving
async def setup_app():
Expand All @@ -58,6 +40,24 @@ async def setup_app():
level=getattr(logging, logging_config['level'])
)

# Html header jinja2 template
html_header = '''
<!DOCTYPE html>
<html>
<head>
<title>'''+config['app_name']+'''</title>
<script src="//unpkg.com/force-graph"></script>
<link rel="stylesheet" href="static/style.css">
</head>
<body>
'''

# Html footer jinja2 template
html_footer = '''
</body>
</html>
'''

@app.route('/')
async def home():
header = html_header
Expand Down

0 comments on commit 626ecf5

Please sign in to comment.