caravelahc / paratex

Extrator de presença parlamentar.
11 stars 7 forks source link

Fix #9 and add time range support for extractions #14

Closed Leviosar closed 4 years ago

Leviosar commented 4 years ago

Fix #9 by creating CSV files using panda's dataframe.to_csv. The files will be created in runtime at paratex/output and ignored by git. For now it creates a separated file for each session, in future we should add support for creating a big CSV file with all the attendances extraced.

For time range, the function expects two Date objects, start and end. If start and end are ommited last month's data will be used. If just end is ommited the end time will be the current date. If start is bigger than end a exception is raised.

GabrielSimonetto commented 4 years ago

LGTM