Skip to content

Commit

Permalink
Updated PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Sep 13, 2019
1 parent 10d7a84 commit 70e7d89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bothub/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
def download_bot_data(self, update_id): # pragma: no cover
update = get_object_or_404(RepositoryUpdate, pk=update_id)
if not update.trained_at:
raise ValidationError('Update #{} not trained at.'.format(update.id))
raise ValidationError(f'Update #{update.pk} not trained at.')
response = HttpResponseRedirect(update.get_bot_data())
return response
4 changes: 2 additions & 2 deletions bothub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def send_bot_data_file_aws(id, bot_data):
confmat_url = ''

if all([aws_access_key_id, aws_secret_access_key, aws_bucket_name]):
confmat_filename = 'repository_{}/bot_data_{}.tar.gz'.format(
str(id), uuid.uuid4())
confmat_filename = \
f'repository_{str(id)}/bot_data_{uuid.uuid4()}.tar.gz'

botdata = io.BytesIO(bot_data)

Expand Down

0 comments on commit 70e7d89

Please sign in to comment.