From 428ada8c83e4005bb514e45bbc049a21c578b4d8 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 28 Mar 2020 16:47:37 -0700 Subject: [PATCH] Rename inner ycdl_flask folder to backend. Following the same thing as I did with etiquette. --- frontends/ycdl_flask/{ycdl_flask => backend}/__init__.py | 0 .../ycdl_flask/{ycdl_flask => backend}/jinja_filters.py | 0 .../ycdl_flask/{ycdl_flask => backend}/ycdl_flask.py | 0 frontends/ycdl_flask/ycdl_flask_launch.py | 8 ++++---- 4 files changed, 4 insertions(+), 4 deletions(-) rename frontends/ycdl_flask/{ycdl_flask => backend}/__init__.py (100%) rename frontends/ycdl_flask/{ycdl_flask => backend}/jinja_filters.py (100%) rename frontends/ycdl_flask/{ycdl_flask => backend}/ycdl_flask.py (100%) diff --git a/frontends/ycdl_flask/ycdl_flask/__init__.py b/frontends/ycdl_flask/backend/__init__.py similarity index 100% rename from frontends/ycdl_flask/ycdl_flask/__init__.py rename to frontends/ycdl_flask/backend/__init__.py diff --git a/frontends/ycdl_flask/ycdl_flask/jinja_filters.py b/frontends/ycdl_flask/backend/jinja_filters.py similarity index 100% rename from frontends/ycdl_flask/ycdl_flask/jinja_filters.py rename to frontends/ycdl_flask/backend/jinja_filters.py diff --git a/frontends/ycdl_flask/ycdl_flask/ycdl_flask.py b/frontends/ycdl_flask/backend/ycdl_flask.py similarity index 100% rename from frontends/ycdl_flask/ycdl_flask/ycdl_flask.py rename to frontends/ycdl_flask/backend/ycdl_flask.py diff --git a/frontends/ycdl_flask/ycdl_flask_launch.py b/frontends/ycdl_flask/ycdl_flask_launch.py index 10ce83c..bdaad4f 100644 --- a/frontends/ycdl_flask/ycdl_flask_launch.py +++ b/frontends/ycdl_flask/ycdl_flask_launch.py @@ -8,24 +8,24 @@ import argparse import gevent.pywsgi import sys -import ycdl_flask +import backend def ycdl_flask_launch(port, refresh_rate): if port == 443: http = gevent.pywsgi.WSGIServer( listener=('', port), - application=ycdl_flask.site, + application=backend.site, keyfile='https\\flasksite.key', certfile='https\\flasksite.crt', ) else: http = gevent.pywsgi.WSGIServer( listener=('0.0.0.0', port), - application=ycdl_flask.site, + application=backend.site, ) if refresh_rate is not None: - ycdl_flask.ycdl_flask.start_refresher_thread(refresh_rate) + backend.ycdl_flask.start_refresher_thread(refresh_rate) print(f'Starting server on port {port}') http.serve_forever()