okfn-brasil / jarbas

🎩 API for information and suspicions about reimbursements by Brazilian congresspeople
https://jarbas.serenata.ai/
296 stars 61 forks source link

Rename .xz to .csv.xz #298

Closed turicas closed 6 years ago

turicas commented 6 years ago

What is the problem? When we uncompress a file using the command xz -d file.xz the uncompressed file name will be file. It'd be good to have the files named xxx.csv.xz instead of xxx.xz so some software (which depends on file extension) will work properly.

How can this be addressed? 1) Replace lines like this (see serenata_toolbox/chamber_of_deputies/dataset.py):

            .replace('.csv', '.xz') \

with:


            .replace('.csv', '.csv.xz') \

This also happens on serenata_toolbox/federal_senate/dataset.py and maybe in other places.

2) Will also need to change all places where these files are read.

Who could help with this issue? @cuducos?

Labels [enhancement]

cuducos commented 6 years ago

Moving it to serenata-toolbox repo ; )