]> littlesong.place Git - littlesongplace.git/commitdiff
Update news, fix init-db command
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 6 Apr 2025 19:38:35 +0000 (15:38 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 6 Apr 2025 19:38:35 +0000 (15:38 -0400)
src/littlesongplace/db.py
src/littlesongplace/templates/news.html

index bdf5efdb1b8e430ed7f9cea4a3f0555164c3bf57..8c10ded0bdd77c33f7358fda08070c217298753b 100644 (file)
@@ -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()
 
index 917a4beb899d5332d41f66d7d1007c6df4ced565..d5da0c1adc1cef35c7150ae71ebd436280266261 100644 (file)
@@ -6,7 +6,22 @@
 
 <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
@@ -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.
+</p>
 <ul>
     <li>Profiles and playlists now have their own comment sections</li>
     <li>Fixed some minor navigation bugs</li>
@@ -27,11 +43,13 @@ No new features today, just a couple small fixes:
 </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>
@@ -39,10 +57,12 @@ for maximum chaos.
 </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>