~alias/polybase-devel

fixed increment of packs + pack without OCaml v1 APPLIED

Luc-Saccoccio: 1
 fixed increment of packs + pack without OCaml

 2 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~alias/polybase-devel/patches/55146/mbox | git am -3
Learn more about email & git

[PATCH] fixed increment of packs + pack without OCaml Export this patch

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
Applied, me dumb dumb

To git@git.sr.ht:~alias/polybase
   b509d05..67a365b  master -> master