Feature/format quotes in info service urls (#4174)

* Format quotes
pull/4056/merge
Thomas Kaul 6 days ago committed by GitHub
parent b1340a96e5
commit 2e72ac7faf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -155,7 +155,7 @@ export class InfoService {
private async countDockerHubPulls(): Promise<number> { private async countDockerHubPulls(): Promise<number> {
try { try {
const { pull_count } = (await fetch( const { pull_count } = (await fetch(
`https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio`, 'https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio',
{ {
headers: { 'User-Agent': 'request' }, headers: { 'User-Agent': 'request' },
signal: AbortSignal.timeout( signal: AbortSignal.timeout(
@ -184,7 +184,7 @@ export class InfoService {
return extractNumberFromString({ return extractNumberFromString({
value: $( value: $(
`a[href="/ghostfolio/ghostfolio/graphs/contributors"] .Counter` 'a[href="/ghostfolio/ghostfolio/graphs/contributors"] .Counter'
).text() ).text()
}); });
} catch (error) { } catch (error) {
@ -197,7 +197,7 @@ export class InfoService {
private async countGitHubStargazers(): Promise<number> { private async countGitHubStargazers(): Promise<number> {
try { try {
const { stargazers_count } = (await fetch( const { stargazers_count } = (await fetch(
`https://api.github.com/repos/ghostfolio/ghostfolio`, 'https://api.github.com/repos/ghostfolio/ghostfolio',
{ {
headers: { 'User-Agent': 'request' }, headers: { 'User-Agent': 'request' },
signal: AbortSignal.timeout( signal: AbortSignal.timeout(

Loading…
Cancel
Save