diff --git a/README.md b/README.md index ca36e1c..ed6fc6b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Glue to use majortiy judgement algorithm in various polls applications -Intial trigger of this project is implementation of this in Nextcloud poll app https://github.com/nextcloud/polls/issues/3472, project pushed by https://www.astrolabe.coop/ +Initial trigger of this project is implementation of this in Nextcloud poll app https://github.com/nextcloud/polls/issues/3472, project pushed by https://www.astrolabe.coop/ + +What does this project : + +It compares local implementation with https://github.com/MieuxVoter using tests samples some exported from nextcloud_poll in csv. ## What is majortiy judgement algorithm ? @@ -17,25 +21,19 @@ LISEZMOI.md ## Testing -### Quick - -make tests - -## all tests - ``` cd samples ./test.sh ``` -tests should run wihtout errors, there is not special error checking wihtin test +tests should run without errors, there is not special error checking within test ## unitary tests python venv **code** activated ( within sample tests.sh does it ). ``` -source code/bin/activate +make setup_dev ``` ``` @@ -47,4 +45,9 @@ source code/bin/activate ## ça marche chez moi (tm) -dev done on Ubuntu 24.04.2 LTS \ No newline at end of file +dev done on Ubuntu 24.04.2 LTS + +``` +cd code +./check_csv.sh ../samples/nextcloud_poll_export/poll1.csv +``` \ No newline at end of file diff --git a/code/check_csv.sh b/code/check_csv.sh index b67851f..20d2ab2 100755 --- a/code/check_csv.sh +++ b/code/check_csv.sh @@ -1,4 +1,4 @@ #!/bin/bash -python3 convert_nextcloud_poll_csv.py ../samples/poll1.csv 'Très Bien' 'Bien' 'Assez Bien' 'Passable' 'Insuffisant' 'A Rejeter' - +csv_file="$1" +python3 convert_nextcloud_poll_csv.py "$csv_file" 'Très Bien' 'Bien' 'Assez Bien' 'Passable' 'Insuffisant' 'A Rejeter'