Skip to content

Commit fdb4790

Browse files
committed
V1.0: Production build unleashed
1 parent fb58db4 commit fdb4790

4 files changed

Lines changed: 35 additions & 2 deletions

File tree

index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_track_song(track_no) -> list:
3636
def index():
3737
songs = get_songs()
3838
song = get_random_song_info()
39-
print(song)
39+
# print(song)
4040
return render_template('index.html', TrackNo=song[0], Artist=song[1], Title=song[2], Picture='/media/'+song[2].replace(" ", "_")+".png", File='https://github.com/Sas2k/SongTrack/raw/main/static/media/'+songs[int(song[0])-1].replace("[", "%5B").replace("]", "%5D")+".mp3")
4141

4242
#For Production
@@ -49,7 +49,7 @@ def index():
4949
def track(track_no):
5050
songs = get_songs()
5151
song = get_track_song(track_no-1)
52-
print(song)
52+
# print(song)
5353
return render_template('song.html', TrackNo=song[0], Artist=song[1], Title=song[2], Picture='/media/'+song[2].replace(" ", "_")+".png", File='https://github.com/Sas2k/SongTrack/raw/main/static/media/'+songs[int(song[0])-1].replace("[", "%5B").replace("]", "%5D")+".mp3")
5454

5555
@app.errorhandler(404)

templates/404.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,15 @@ <h1><a href="/">Here is a way <strong>Back</strong></a></h1>
2323
</div>
2424
<script src={{ url_for('static', filename='static/js/index.js') }}></script>
2525
</body>
26+
<footer>
27+
<div class="footer">
28+
<div class="content has-text-centered">
29+
<p>
30+
<strong>SongTrack</strong> by <a href="https://github.com/Sas2k">Sas2k 2022</a>. <br>
31+
<strong><a href="https://github.com/Sas2k/SongTrack">Source Code</a></strong> <br>
32+
<em>Made with ♥</em>
33+
</p>
34+
</div>
35+
</div>
36+
</footer>
2637
</html>

templates/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,15 @@ <h1 class="title">{{ Title }}</h1>
6767
</script>
6868
<script src={{ url_for('static', filename="js/index.js") }}></script>
6969
</body>
70+
<footer>
71+
<div class="footer">
72+
<div class="content has-text-centered">
73+
<p>
74+
<strong>SongTrack</strong> by <a href="https://github.com/Sas2k">Sas2k 2022</a>. <br>
75+
<strong><a href="https://github.com/Sas2k/SongTrack">Source Code</a></strong> <br>
76+
<em>Made with ♥</em>
77+
</p>
78+
</div>
79+
</div>
80+
</footer>
7081
</html>

templates/song.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,15 @@ <h1 class="title">{{ Title }}</h1>
6767
</script>
6868
<script src={{ url_for('static', filename="js/index.js") }}></script>
6969
</body>
70+
<footer>
71+
<div class="footer">
72+
<div class="content has-text-centered">
73+
<p>
74+
<strong>SongTrack</strong> by <a href="https://github.com/Sas2k">Sas2k 2022</a>. <br>
75+
<strong><a href="https://github.com/Sas2k/SongTrack">Source Code</a></strong> <br>
76+
<em>Made with ♥</em>
77+
</p>
78+
</div>
79+
</div>
80+
</footer>
7081
</html>

0 commit comments

Comments
 (0)