fix missing API version in URL
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
2026-10-08 22:29:23 +02:00
parent 85295deb22
commit 798c88198c
2 changed files with 1 additions and 42 deletions
-38
View File
@@ -1,38 +0,0 @@
{
"sport": null,
"player": null,
"team": null,
"field_position": null,
"rooster": null,
"vendor": null,
"card_set": null,
"card": null,
"artist": null,
"publisher": null,
"worktype": null,
"comic": null,
"volume": null,
"story_arc": null,
"issue": null,
"trade_paperback": null,
"comic_work": null,
"issue_work": null,
"article": null,
"bookshelf_publisher": null,
"book": null,
"author": null,
"article_author": null,
"book_author": null,
"media_article": null,
"media_video": null,
"media_lofi": null,
"media_file": null,
"media_actor": null,
"media_actor_file": null,
"profile": null,
"permission": null,
"assignment": null,
"token": null,
"mail_account": null,
"mail": null
}
+1 -4
View File
@@ -137,9 +137,6 @@ func GetData(server config.Server, apiVersion string) (data *ExportData, err err
for path, value := range Registry {
GetJSON(client, login.Token, server, path, value)
if path == "tysc/sports" {
slog.Info("Sports", "value", value, "Registry.Sports", Sports)
}
}
export := ExportData{
Sport: Sports,
@@ -199,7 +196,7 @@ func WriteJson(data *ExportData, fileName string) error {
}
func GetJSON(client *resty.Client, token string, server config.Server, path string, v any) {
url := fmt.Sprintf("%s/%s", server.Url, path)
url := fmt.Sprintf("%s/%s/%s", server.Url, config.Config.ApiVersion, path)
if config.Verbose > 1 {
slog.Info("GetJSON", "url", url)
}