mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
fix: show unique upstream urls only
This commit is contained in:
parent
5b4bff9c93
commit
69a79a2e64
@ -182,7 +182,12 @@
|
|||||||
const description = response.find(Boolean);
|
const description = response.find(Boolean);
|
||||||
const packages = Object.keys(description.package.packages);
|
const packages = Object.keys(description.package.packages);
|
||||||
const aurUrl = description.package.remote.web_url;
|
const aurUrl = description.package.remote.web_url;
|
||||||
const upstreamUrls = Object.values(description.package.packages).map(single => single.url);
|
const upstreamUrls = Array.from(
|
||||||
|
new Set(
|
||||||
|
Object.values(description.package.packages)
|
||||||
|
.map(single => single.url)
|
||||||
|
)
|
||||||
|
).sort();
|
||||||
|
|
||||||
packageInfo.text(`${description.package.base} ${description.status.status} at ${new Date(1000 * description.status.timestamp).toISOStringShort()}`);
|
packageInfo.text(`${description.package.base} ${description.status.status} at ${new Date(1000 * description.status.timestamp).toISOStringShort()}`);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user