Revert "Fix RSS time filters and add draggable grid layout"

This reverts commit 4ee365cfc0.
This commit is contained in:
Shivam Patel
2026-02-09 17:56:49 -05:00
parent 4ee365cfc0
commit cebcb4c8cd
13 changed files with 47 additions and 324 deletions

View File

@@ -80,23 +80,5 @@ export async function getDb() {
);
}
// Migrate existing non-ISO pub_date values to ISO 8601
try {
const rows = await db.all(
"SELECT id, pub_date FROM rss_items WHERE pub_date IS NOT NULL AND pub_date NOT LIKE '____-__-__T%'"
);
for (const row of rows) {
const d = new Date(row.pub_date);
if (!isNaN(d.getTime())) {
await db.run('UPDATE rss_items SET pub_date = ? WHERE id = ?', d.toISOString(), row.id);
}
}
if (rows.length > 0) {
console.log(`Migrated ${rows.length} rss_items pub_date values to ISO 8601`);
}
} catch (e) {
// Table may not have data yet, ignore
}
return db;
}