@tricoteuses/assemblee 1.7.5 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/datasets.js +210 -4
- package/lib/datasets.mjs +210 -4
- package/lib/loaders.js +4 -4
- package/lib/loaders.mjs +4 -4
- package/lib/scripts/get_today_reunions.js +2 -2
- package/lib/scripts/get_today_reunions.mjs +2 -2
- package/lib/scripts/retrieve_deputes_photos.js +32 -31
- package/lib/scripts/retrieve_deputes_photos.mjs +3 -2
- package/lib/scripts/test_iter_load.js +10 -10
- package/lib/scripts/test_iter_load.mjs +10 -10
- package/lib/types/legislatures.d.ts +2 -0
- package/lib/types/legislatures.js +3 -1
- package/lib/types/legislatures.mjs +3 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -63,8 +63,8 @@ npm run data:download ../assemblee-data -- --categories Amendements
|
|
|
63
63
|
|
|
64
64
|
To download only a specific legislature, use the *--legislature* option (shortcut *-l*):
|
|
65
65
|
```bash
|
|
66
|
-
# Available options : 14, 15, 16
|
|
67
|
-
npm run data:download ../assemblee-data -- --legislature
|
|
66
|
+
# Available options : 14, 15, 16, 17
|
|
67
|
+
npm run data:download ../assemblee-data -- --legislature 17
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
If you use such options, use them in all subsequent commands too (*data:regorganize_data* and *data:clean_data*).
|
|
@@ -81,7 +81,7 @@ Create a volume to download the data and use the environment variables `LEGISLAT
|
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
83
|
docker volume create assemblee-data
|
|
84
|
-
docker run --name tricoteuses-assemblee -v assemblee-data:/app/assemblee -e LEGISLATURE=
|
|
84
|
+
docker run --name tricoteuses-assemblee -v assemblee-data:/app/assemblee -e LEGISLATURE=17 -d registry.en-root.org/tricoteuses/tricoteuses-assemblee:latest
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
## Using the data
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
} from "@tricoteuses/assemblee/lib/loaders";
|
|
108
108
|
|
|
109
109
|
// Pass data directory and legislature as arguments
|
|
110
|
-
for (const { acteur } of iterLoadAssembleeActeurs("../assemblee-data",
|
|
110
|
+
for (const { acteur } of iterLoadAssembleeActeurs("../assemblee-data", 17)) {
|
|
111
111
|
console.log(acteur.uid)
|
|
112
112
|
}
|
|
113
113
|
```
|