mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-02 22:32:19 +00:00
Test
This commit is contained in:
parent
6b6037f735
commit
e20bf813c2
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ func getLastWeekMetric(serviceName string) int {
|
||||||
val, err := runIntQueryWithTime(
|
val, err := runIntQueryWithTime(
|
||||||
POSTGRESQL_STATS_DB,
|
POSTGRESQL_STATS_DB,
|
||||||
fmt.Sprintf(
|
fmt.Sprintf(
|
||||||
"SELECT metric_value FROM %s WHERE metric_name = '%s' AND service = '%s' AND metric_time = '$1' LIMIT 1",
|
"SELECT metric_value FROM %s WHERE metric_name = '%s' AND service = '%s' AND metric_time = $1 LIMIT 1",
|
||||||
POSTGRESQL_STATS_TABLE,
|
POSTGRESQL_STATS_TABLE,
|
||||||
METRICNAME_USERCOUNT,
|
METRICNAME_USERCOUNT,
|
||||||
serviceName,
|
serviceName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue