Intevation / intelmq-fody-backend

A backend to serve intelmq-cb-mailgen data for the webapp fody.
2 stars 2 forks source link

Reduce code duplication in backend parts #13

Open bernhardreiter opened 7 years ago

bernhardreiter commented 7 years ago

There are some code places with are duplicates now and should be put in a common utility module.

For example:

grep -r "def read_con" . ./events_api/events_api/serve.py:def read_configuration() -> dict: ./tickets_api/tickets_api/serve.py:def read_configuration() -> dict: ./contactdb_api/contactdb_api/serve.py:def read_configuration() -> dict:

And various ways to do database queries with psycopg2.

Value: A better future fitness of the code.