Skip to content

Commit 3d6aaf3

Browse files
committed
chore: try again with the whole fuzzysearch thing
1 parent d89da2e commit 3d6aaf3

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Release
22

33
on:
4+
push:
5+
branches:
6+
- main
47
schedule:
58
- cron: '0 0 1 * *' # Run monthly
69
workflow_dispatch:
@@ -52,9 +55,9 @@ jobs:
5255

5356
- name: Scrape for updates
5457
if: |
55-
inputs.skip_scrape != true &&
56-
(steps.check_release.outputs.version_exists == 'true' ||
57-
github.event_name == 'workflow_dispatch')
58+
(inputs.skip_scrape != true && github.event_name == 'workflow_dispatch') ||
59+
(github.event_name == 'schedule') ||
60+
(github.event_name == 'push' && inputs.skip_scrape != true)
5861
id: scrape
5962
run: |
6063
if [ "${{ inputs.force_scrape }}" = "true" ]; then

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@castdrian/kdapi",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"type": "module",
55
"description": "kpop idol and group profiles dataset generator",
66
"main": "dist/index.js",

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ const dataset: DataSet = {
1313

1414
const groupSearchOptions: IFuseOptions<Group> = {
1515
keys: [
16-
{ name: "groupInfo.names.stage", weight: 2 },
16+
{ name: "groupInfo.names.stage", weight: 2.5 },
1717
{ name: "groupInfo.names.korean", weight: 2 },
1818
{ name: "groupInfo.names.japanese", weight: 1.5 },
1919
{ name: "groupInfo.names.chinese", weight: 1.5 },
20-
{ name: "groupInfo.fandomName", weight: 0.7 },
20+
{ name: "groupInfo.fandomName", weight: 0.5 },
2121
{ name: "company.current", weight: 0.3 },
22-
{ name: "memberHistory.currentMembers.name", weight: 1 },
22+
{ name: "memberHistory.currentMembers.name", weight: 0.3 },
2323
],
2424
includeScore: true,
25-
threshold: 0.3,
25+
threshold: 0.4,
2626
ignoreLocation: true,
2727
minMatchCharLength: 2,
2828
};

0 commit comments

Comments
 (0)