From: Chris Fulljames Date: Sun, 6 Apr 2025 19:38:35 +0000 (-0400) Subject: Update news, fix init-db command X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=d285a22b0e2c2aa45ac2a8cf9bf2b71ab4f615c7;p=littlesongplace.git Update news, fix init-db command --- diff --git a/src/littlesongplace/db.py b/src/littlesongplace/db.py index bdf5efd..8c10ded 100644 --- a/src/littlesongplace/db.py +++ b/src/littlesongplace/db.py @@ -44,8 +44,8 @@ def commit(): 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() diff --git a/src/littlesongplace/templates/news.html b/src/littlesongplace/templates/news.html index 917a4be..d5da0c1 100644 --- a/src/littlesongplace/templates/news.html +++ b/src/littlesongplace/templates/news.html @@ -6,7 +6,22 @@

Site News

+

2025-04-06 - Open Source

+

+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 +the GitHub page. +I've spent the last couple weeks cleaning up the code to make it +semi-presentable, and hopefully also easier to maintain going forward. +

+ +

2025-03-23 - More Comments!

+

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 @@ -14,6 +29,7 @@ impossible to add comments to anything else. The new system is way more 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. +

2025-03-01 - Increased Entropy

+

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. +

2025-02-22 - Musical Continuity

+

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. +