Skip to content

Commit

Permalink
feat: publish v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kentzhu committed Apr 22, 2024
1 parent 08c8524 commit 2ab92d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Simple, lightweight, reliable, Docker deployable, easy to maintain.
One command is all it takes to deploy the service to port 8080 using Docker.

```shell
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.1
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.2
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/zhs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LessAPI-DuckDuckGo 是一个搜索引擎API服务。
使用Docker只需要一个命令即可将服务部署到8080端口。

```shell
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.1
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.2
```

## 使用
Expand Down
4 changes: 3 additions & 1 deletion internal/searchs/list_language.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package searchs

import (
"fmt"
"strings"

"github.com/lessapidev/lessapi-duckduckgo/internal/types"
"github.com/playwright-community/playwright-go"
)
Expand Down Expand Up @@ -73,7 +75,7 @@ func ListLanguage(param types.ListLanguagePayload) (*types.ListLanguageResponse,
return nil, fmt.Errorf("could not get text content: %w", err)
}
l = append(l, types.LanguageType{
Code: code,
Code: strings.ReplaceAll(code, "_", "-"),
Name: name,
})
}
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package lessapi_duckduckgo

const ServerName = "LessAPI-DuckDuckGo"
const ProjectGithub = "https://github.com/lessapidev/lessapi-duckduckgo"
const Version = "0.0.1"
const Version = "0.0.2"

0 comments on commit 2ab92d0

Please sign in to comment.