Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into cuducos-production-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos committed Sep 7, 2017
2 parents a066c06 + aadbb6e commit cb6dfe9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jarbas/core/management/commands/companies.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def save_companies(self):
"""
skip = ('main_activity', 'secondary_activity')
keys = tuple(f.name for f in Company._meta.fields if f not in skip)
with lzma.open(self.path, mode='rt') as file_handler:
with lzma.open(self.path, mode='rt', encoding='utf-8') as file_handler:
for row in csv.DictReader(file_handler):
main, secondary = self.save_activities(row)

Expand Down
2 changes: 1 addition & 1 deletion jarbas/core/management/commands/reimbursements.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def handle(self, *args, **options):
@property
def reimbursements(self):
"""Returns a Generator with a dict object for each row."""
with lzma.open(self.path, mode='rt') as file_handler:
with lzma.open(self.path, mode='rt', encoding='utf-8') as file_handler:
for row in csv.DictReader(file_handler):
yield self.serialize(row)

Expand Down
2 changes: 1 addition & 1 deletion jarbas/core/management/commands/suspicions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def handle(self, *args, **options):
def suspicions(self):
"""Returns a Generator with batches of suspicions."""
print('Loading suspicions dataset…', end='\r')
with lzma.open(self.path, mode='rt') as file_handler:
with lzma.open(self.path, mode='rt', encoding='utf-8') as file_handler:
batch = []
for row in csv.DictReader(file_handler):
batch.append(self.serialize(row))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git+https://github.com/cuducos/django-simple-history.git@cuducos-missing-translations-in-pt-br
Django==1.11.4
Django==1.11.5
brazilnum==0.8.8
dj-database-url==0.4.2
django-assets==0.12
Expand Down

0 comments on commit cb6dfe9

Please sign in to comment.