[db_update] Now added tracks are unselected by default.

This commit is contained in:
ayakael 2018-05-15 23:51:40 -07:00
parent 7acf7f5d99
commit 5fc92f1620
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -24,7 +24,7 @@ db_update() {
fi
for trackid in ${trackidList[@]}; do
if [[ -z $(awk -v imageid="${IMAGEID}" -v trackid="${trackid}" 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $0}}' ${DB_FILE}) ]]; then
echo -e "true\t${IMAGEID}\t${trackid}\tnull" >> ${DB_FILE}
echo -e "false\t${IMAGEID}\t${trackid}\tnull" >> ${DB_FILE}
fi
done
return 0