mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
fix updating datetime and enforce list mode on sqlite3
This commit is contained in:
parent
41c40bbd38
commit
d2611e6e33
4
ani-cli
4
ani-cli
@ -167,7 +167,7 @@ generate_span() {
|
||||
#####################
|
||||
|
||||
run_stmt() {
|
||||
printf "%s\n" "$1" | sqlite3 -noheader "$HISTORY_DB"
|
||||
printf "%s\n" "$1" | sqlite3 -noheader -list "$HISTORY_DB"
|
||||
}
|
||||
|
||||
# Return number of matches for anime/episode in db
|
||||
@ -207,7 +207,7 @@ update_date() {
|
||||
stmt=""
|
||||
case "$1" in
|
||||
directory)
|
||||
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = '$3';"
|
||||
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = 'DIRECTORY';"
|
||||
;;
|
||||
file)
|
||||
stmt="UPDATE file_history SET watch_date = '$datetime' WHERE directory = '$2' and filename = '$3';"
|
||||
|
Loading…
Reference in New Issue
Block a user