~earboxer/apkbrowser-gemini

86df0fd15da2d5cf1c31a99f5a289a1f2b5a641c — Zach DeCook 2 months ago 4eca334 zachster
packages: make subscribable

and sort by build time
1 files changed, 8 insertions(+), 1 deletions(-)

M packages
M packages => packages +8 -1
@@ 3,7 3,14 @@
printf "20 text/gemini\r\n"
echo "# Packages"

printf 'select "=>", "/package/%s/" || repo ||"/"||arch||"/"||name,(name || "-" || version), license from packages limit 10;' "$default_branch"| \
printf 'SELECT "=>",
	"/package/%s/" || repo ||"/"||arch||"/"||name,
	datetime(build_time,"unixepoch"),
	(name || "-" || version),
	license
	FROM packages
	ORDER BY build_time desc
	LIMIT 10;' "$default_branch"| \
sqlite3 -separator "$(printf "\t")" "db/$default_branch.db"

# TODO: Add pagination with query string.