You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bkg.sh
+5-16Lines changed: 5 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -96,9 +96,9 @@ main() {
96
96
date text not null,
97
97
primary key (owner_id, package, date)
98
98
); pragma auto_vacuum = full;"
99
-
sqlite3 "$BKG_INDEX_DB""select owner_id, owner, repo, package from '$BKG_INDEX_TBL_PKG' where date >= '$BKG_BATCH_FIRST_STARTED';"| sort -u >packages_already_updated
99
+
sqlite3 "$BKG_INDEX_DB""select owner_id, owner, repo, package from '$BKG_INDEX_TBL_PKG' where date < '$BKG_BATCH_FIRST_STARTED' order by date asc;"| sort -u >packages_to_update
100
+
sqlite3 "$BKG_INDEX_DB""select owner_id, owner, repo, package from '$BKG_INDEX_TBL_PKG' where date >= '$BKG_BATCH_FIRST_STARTED';"| sort -u >packages_already_updated
0 commit comments