...
 
Commits (3)
......@@ -3,3 +3,31 @@
Retrieve continuously amendments changes and other news from French Parliament servers.
The data collected by Tricoteuses-Daemons are used by [Tricoteuses-API](https://framagit.org/parlement-ouvert/tricoteuses-api).
## Data & stream from _Senat_
cf [page of ameli database in Senat's open data web site](http://data.senat.fr/ameli/)
### Install `ameli` database from _Senat_
```bash
wget http://data.senat.fr/data/ameli/ameli.zip
unzip ameli.zip
su
su postgres
# dropdb ameli
# dropuser opendata
# createuser -IPRS opendata
# Enter password for new role: opendata
# Enter it again: opendata
# createdb -E utf-8 -O opendata ameli
psql ameli < var/opt/opendata/ameli.sql
exit
exit
rm -R var/
rm ameli.zip
```
### Schema of `ameli` database
![Schema of ameli SQL database](doc/ameli-schema.png)
This diff is collapsed.
......@@ -306,12 +306,12 @@ def harvest_organe(organe):
if task is not None:
context['urgent_task'] = None
function = task.pop('function')
function(context, **task)
function(context, **task) # pylint: disable=E1134
continue
if tasks:
task = tasks.pop(0)
function = task.pop('function')
function(context, **task)
function(context, **task) # pylint: disable=E1134
continue
time.sleep(1)
......
This diff is collapsed.