diff --git a/cabot/cabotapp/tasks.py b/cabot/cabotapp/tasks.py index a13412627..e748699e6 100644 --- a/cabot/cabotapp/tasks.py +++ b/cabot/cabotapp/tasks.py @@ -99,11 +99,7 @@ def clean_db(days_to_retain=7, batch_size=10000): InstanceStatusSnapshot.objects.filter(id__in=instance_snapshot_ids).delete() # If we reached the batch size on either we need to re-queue to continue cleaning up. - if ( - result_count == batch_size or - service_snapshot_count == batch_size or - instance_snapshot_count == batch_size - ): + if result_count == batch_size or service_snapshot_count == batch_size or instance_snapshot_count == batch_size: clean_db.apply_async(kwargs={ 'days_to_retain': days_to_retain, 'batch_size': batch_size}, diff --git a/cabot/cabotapp/views.py b/cabot/cabotapp/views.py index 734a657ea..fdaf635ea 100644 --- a/cabot/cabotapp/views.py +++ b/cabot/cabotapp/views.py @@ -265,7 +265,7 @@ class Meta: }), 'text_match': forms.TextInput(attrs={ 'style': 'width: 100%', - 'placeholder': '[Aa]rachnys\s+[Rr]ules', + 'placeholder': r'[Aa]rachnys\s+[Rr]ules', }), 'status_code': forms.TextInput(attrs={ 'style': 'width: 20%', diff --git a/cabot/settings.py b/cabot/settings.py index 187860113..7699138a3 100644 --- a/cabot/settings.py +++ b/cabot/settings.py @@ -164,7 +164,7 @@ COMPRESS_PRECOMPILERS = ( ('text/coffeescript', 'coffee --compile --stdio'), ('text/eco', - 'eco -i TEMPLATES {infile} && cat "$(echo "{infile}" | sed -e "s/\.eco$/.js/g")"'), + r'eco -i TEMPLATES {infile} && cat "$(echo "{infile}" | sed -e "s/\.eco$/.js/g")"'), ('text/less', 'lessc {infile} > {outfile}'), )