Skip to content

Commit db5bcf5

Browse files
committed
Deleted no-longer used GF_SCRIPTS + alphabetization
1 parent 2df40c1 commit db5bcf5

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.github/workflows/update-root-usercount-jsd-shields-weekly.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@ jobs:
2323

2424
- name: Fetch/sum user + JSD request counts
2525
run: |
26-
declare -A GF_SCRIPTS=( # for Greasy Fork script user counts
27-
["460805"]="Autoclear ChatGPT History"
28-
["500663"]="AmazonGPT"
29-
["462440"]="BraveGPT"
30-
["466789"]="ChatGPT Auto-Continue"
31-
["462422"]="ChatGPT Auto Refresh"
32-
["500940"]="ChatGPT Auto-Talk"
33-
["465051"]="ChatGPT Infinity"
34-
["461473"]="ChatGPT Widescreen Mode"
35-
["459849"]="DuckDuckGPT"
36-
["478597"]="GoogleGPT"
37-
)
38-
3926
declare -A CHROME_EXTENSIONS=( # for Chrome extension user counts
4027
["obnaimomofoogphlhlaipeflcbneamnj"]="Brave Omnibox"
4128
["lbojnhaafilddefkdgmbplkafnckaoga"]="ChatGPT Auto-Continue"
@@ -121,23 +108,6 @@ jobs:
121108
echo "$formatted_num"
122109
}
123110
124-
# Alphabetize arrays for more readable logging
125-
for array_type in "GF_SCRIPTS" "CHROME_EXTENSIONS" "EDGE_ADDONS" "FF_ADDONS" ; do
126-
127-
# Extract IDs/names
128-
eval ids=\${!$array_type[@]} names=(\"\${$array_type[@]}\")
129-
IFS=' ' read -r -a ids <<< "$ids" # converted space-delimited IDs to actual array
130-
for ((i = 0 ; i < ${#ids[@]} ; i++)) ; do
131-
app_id="${ids[i]}" app_name="${names[i]}" ; done
132-
133-
# Create alphabetized arrays
134-
sorted_array=()
135-
for ((i = 0; i < ${#ids[@]}; i++)) ; do
136-
sorted_array+=("${names[i]}:${ids[i]}") ; done
137-
IFS=$'\n' sorted_array=($(sort <<<"${sorted_array[*]}"))
138-
eval sorted_${array_type}=\(\"\${sorted_array[@]}\"\)
139-
done
140-
141111
# Init Greasy Fork user counts
142112
total_gf_users=200000
143113
echo -e "\n-----\nTotal Greasy Fork users: $total_gf_users\n-----\n"

0 commit comments

Comments
 (0)