Skip to content

Commit

Permalink
fix: language not applied to StartTask
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotiaWang committed Apr 18, 2023
1 parent 703d1d8 commit 4d4a24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open-assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func StartTask() error {
"Cookie": model.Conf.OaCookie,
"Content-Type": "application/json",
}).
Get("https://open-assistant.io/api/new_task/random?lang=zh")
Get("https://open-assistant.io/api/new_task/random?lang=" + model.Conf.Language)
if err != nil {
return err
}
Expand Down

0 comments on commit 4d4a24a

Please sign in to comment.