Skip to content

Commit

Permalink
Merge pull request #44 from Scille/touilleMan-patch-2
Browse files Browse the repository at this point in the history
Fix upload of logs containing non-ascii in task_participation.py
  • Loading branch information
touilleMan authored Sep 24, 2024
2 parents 3743c36 + 35118e7 commit b3ef7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vigiechiro/scripts/task_participation.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def save_donnee(d):
titre = 'participation-%s-logs' % (self.participation['_id'])
new_logs = _create_fichier(titre, 'text/plain',
self.participation['observateur'],
data_raw=str(logger.LOGS),
data_raw=str(logger.LOGS).encode('utf-8'),
lien_participation=self.participation['_id'],
force_upload=True)
old_logs = self.participation.get('logs')
Expand Down

0 comments on commit b3ef7f4

Please sign in to comment.