Signed-off-by: Luc-Saccoccio <lucsaccoccio@disroot.org>
Fixed a typo in the first patch + new pack for L2 not having LU2IN019
---
packs.txt | 1 +
polybase | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/packs.txt b/packs.txt
index 311aa6d..e11358d 100644
--- a/packs.txt
+++ b/packs.txt
@@ -1,2 +1,3 @@
L2:(('LU2IN002','TD',1),('LU2IN005','TD',1),('LU2IN018','Memento',1),('LU2IN018','TME',1),('LU2IN019','TD',1))
+L2_Sans_OCaml:(('LU2IN002','TD',1),('LU2IN005','TD',1),('LU2IN018','Memento',1),('LU2IN018','TME',1))
L3_BDD:(('LU3IN009','Cours',1),('LU3IN009','TD',1))
diff --git a/polybase b/polybase
index 235ec15..1f5f345 100755
--- a/polybase
+++ b/polybase
@@ -101,7 +101,7 @@ increment() {
pack_name=$(echo "$pack" | cut -d : -f 1)
pack_content=$(echo "$pack" | cut -d : -f 2)
if [ "$pack_name" "$(echo $1 | cut -d _ -f 2-)" = "$pack_name" ]; then
- sqlite3 "$DB" "UPDATE courses SET quantity = quantity - 1 WHERE (code, kind, part) IN $pack_content;"
+ sqlite3 "$DB" "UPDATE courses SET quantity = quantity + 1 WHERE (code, kind, part) IN $pack_content;"
fi
done < /packs.txt
else
--
2.46.0