mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-14 10:13:34 -06:00
change to python based import run solution
This commit is contained in:
@@ -21,6 +21,8 @@ def check_and_update():
|
|||||||
@app.route('/spotify/')
|
@app.route('/spotify/')
|
||||||
def spotify():
|
def spotify():
|
||||||
if check_and_update():
|
if check_and_update():
|
||||||
print('Graph out of date - running udpate command')
|
from .spotify_explicit import main
|
||||||
r = subprocess.run(['python3', '/home/xevion/xevion.dev/app/spotify_explicit/main.py'])
|
print('Graph out of date - running update command')
|
||||||
|
main.main()
|
||||||
|
# r = subprocess.run(['python3', '/home/xevion/xevion.dev/app/spotify_explicit/main.py'])
|
||||||
return send_file('spotify_explicit/export/export.png')
|
return send_file('spotify_explicit/export/export.png')
|
||||||
Reference in New Issue
Block a user