def init_cmd():
"""Clear the existing data and create new tables"""
with current_app.app_context():
- db = sqlite3.connect(DATA_DIR / "database.db")
- with app.open_resource(SCRIPT_DIR / 'schema.sql', mode='r') as f:
+ db = sqlite3.connect(datadir.get_db_path())
+ with current_app.open_resource('sql/schema.sql', mode='r') as f:
db.cursor().executescript(f.read())
db.commit()
<h1>Site News</h1>
+<h2>2025-04-06 - Open Source</h2>
+<p>
+littlesong.place is now open source! Check out what I'm up to, open issues for
+new features or bugs, comment on existing ones, and peruse the source code on
+<a href="https://github.com/cfulljames/littlesongplace">the GitHub page</a>.
+I've spent the last couple weeks cleaning up the code to make it
+semi-presentable, and hopefully also easier to maintain going forward.
+</p>
+<ul>
+ <li>New <a href="/about">About</a> page</li>
+ <li>Minor home page tweaks</li>
+ <li>Minimize player when scrolling</li>
+</ul>
+
<h2>2025-03-23 - More Comments!</h2>
+<p>
You can now leave comments on profiles and playlists! I've spent the last
couple weeks rewriting the entire comment system on the server. Before,
comments were tied directly to songs. This was nice and simple, but it made it
flexible, and makes it much easier to add comment threads in new places. If
everything worked correctly, all the existing song comments and notifications
should be seamlessly copied over to the new system as if nothing ever happened.
+</p>
<ul>
<li>Profiles and playlists now have their own comment sections</li>
<li>Fixed some minor navigation bugs</li>
</ul>
<h2>2025-03-01 - Increased Entropy</h2>
+<p>
Normally programming is about bringing order to chaos, but this week I've
added chaos to your song order. There's a new Random page that will randomly
select 50 songs from the database, and every song list now has a shuffle button
to randomize the song order. You can even shuffle the songs on the Random page
for maximum chaos.
+</p>
<ul>
<li>New Random songs page</li>
<li>Song lists now have a shuffle toggle</li>
</ul>
<h2>2025-02-22 - Musical Continuity</h2>
+<p>
The song player now persists between pages as you navigate around the site, so
the music isn't interrupted when you comment on a song or visit someone's
profile! It will continue playing the songs from the original page until you
click the play button on a new song.
+</p>
<ul>
<li>Persistent audio player</li>
<li>Profile links on the home page now use profile pictures and colors</li>