Fix 'errors'

- two python comparisons error not passing flake8 anymore
- typescript not being able to recognize an object, sending it prechewed
This commit is contained in:
Maximilian Krambach 2019-01-30 11:54:28 +01:00 committed by Sean Engelhardt
parent 625de1aeb4
commit 10d1209da8
2 changed files with 2 additions and 2 deletions

View File

@ -869,7 +869,7 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit {
) )
.subscribe(id => { .subscribe(id => {
this.contentForm.patchValue({ this.contentForm.patchValue({
workflow_id: parseInt(id, 10) workflow_id: parseInt(id as string, 10)
}); });
}); });
} }

View File

@ -21,7 +21,7 @@ def add_permission_to_groups_based_on_existing_permission(
codename=codename, content_type__in=content_type codename=codename, content_type__in=content_type
) )
if len(base_perm) is 1 and len(content_type) is 1: if len(base_perm) == 1 and len(content_type) == 1:
# get the actual content type and base permission # get the actual content type and base permission
base_perm = base_perm.get() base_perm = base_perm.get()
content_type = content_type.get() content_type = content_type.get()