... | ... |
@@ -160,7 +160,7 @@ function update_database () { |
160 | 160 |
|
161 | 161 |
echo $(sqlite_request "select printf('[ %i/%i ] $ac', count(sx), count(distinct ac)) from recover_setxml") |
162 | 162 |
|
163 |
- for sx in $(sqlite_request "select sx from recover_setxml where ac = '$ac'"); do |
|
163 |
+ for sx in $(sqlite_request "select distinct sx from recover_setxml where ac = '$ac'"); do |
|
164 | 164 |
for col in ${!data[@]}; do |
165 | 165 |
data[$col]= |
166 | 166 |
done |