update project usage
This commit is contained in:
21
README.md
21
README.md
@@ -1,6 +1,10 @@
|
|||||||
# Glue to use majortiy judgement algorithm in various polls applications
|
# 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 ?
|
## What is majortiy judgement algorithm ?
|
||||||
|
|
||||||
@@ -17,25 +21,19 @@ LISEZMOI.md
|
|||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
### Quick
|
|
||||||
|
|
||||||
make tests
|
|
||||||
|
|
||||||
## all tests
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cd samples
|
cd samples
|
||||||
./test.sh
|
./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
|
## unitary tests
|
||||||
|
|
||||||
python venv **code** activated ( within sample tests.sh does it ).
|
python venv **code** activated ( within sample tests.sh does it ).
|
||||||
|
|
||||||
```
|
```
|
||||||
source code/bin/activate
|
make setup_dev
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -48,3 +46,8 @@ source code/bin/activate
|
|||||||
## ça marche chez moi (tm)
|
## ça marche chez moi (tm)
|
||||||
|
|
||||||
dev done on Ubuntu 24.04.2 LTS
|
dev done on Ubuntu 24.04.2 LTS
|
||||||
|
|
||||||
|
```
|
||||||
|
cd code
|
||||||
|
./check_csv.sh ../samples/nextcloud_poll_export/poll1.csv
|
||||||
|
```
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/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'
|
||||||
|
|||||||
Reference in New Issue
Block a user