| Conditions | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | import random |
|
| 26 | 1 | def _samples(blank=False): |
|
| 27 | """Generate dictionaries of sample image data for template rendering.""" |
||
| 28 | 1 | for template in sorted(current_app.template_service.all()): |
|
| 29 | 1 | path = "_" if blank else template.sample_path |
|
| 30 | 1 | url = route('image.get', key=template.key, path=path) |
|
| 31 | 1 | yield { |
|
| 32 | 'key': template.key, |
||
| 33 | 'name': template.name, |
||
| 34 | 'url': url, |
||
| 35 | } |
||
| 36 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.