mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 09:41:42 +02:00
Merge branch 'legacy' into new_frontend
This commit is contained in:
1
backend/Procfile
Normal file
1
backend/Procfile
Normal file
@ -0,0 +1 @@
|
||||
web: gunicorn wsgi:app
|
@ -18,7 +18,7 @@ def create_data_directory():
|
||||
def get_catalog_url():
|
||||
r = requests.get('https://www.karafun.de/karaoke-song-list.html')
|
||||
soup = BeautifulSoup(r.content, 'html.parser')
|
||||
url = soup.findAll('a', href=True, text='Available in CSV format')[0]['href']
|
||||
url = soup.findAll('a', href=True, text='Verfügbar in CSV-Format')[0]['href']
|
||||
return url
|
||||
|
||||
def get_songs(url):
|
||||
@ -36,7 +36,9 @@ def check_config_exists():
|
||||
return os.path.isfile(config_file)
|
||||
|
||||
def load_version(app):
|
||||
if os.path.isfile(".version"):
|
||||
if os.environ.get("SOURCE_VERSION"):
|
||||
app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[0:7]
|
||||
elif os.path.isfile(".version"):
|
||||
with open('.version', 'r') as file:
|
||||
data = file.read().replace('\n', '')
|
||||
if data:
|
@ -1,4 +1,5 @@
|
||||
requests
|
||||
pandas
|
||||
Flask-BasicAuth
|
||||
bs4
|
||||
bs4
|
||||
gunicorn
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
4
backend/wsgi.py
Normal file
4
backend/wsgi.py
Normal file
@ -0,0 +1,4 @@
|
||||
from app import app
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
Reference in New Issue
Block a user