Skip to content

Commit f08f8c8

Browse files
dependabot-preview[bot]Aaron Suarez
andauthored
Bump flake8 from 3.7.9 to 3.8.1 (#310)
* Bump flake8 from 3.7.9 to 3.8.1 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.7.9 to 3.8.1. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.7.9...3.8.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix linting errors Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Aaron Suarez <aaron.j.suarez1@gmail.com>
1 parent 731c27e commit f08f8c8

7 files changed

Lines changed: 87 additions & 465 deletions

File tree

app/api/routes/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_attributes(json):
1919
languages_list = Language.query.all()
2020
categories_list = Category.query.all()
2121

22-
language_dict = {l.key(): l for l in languages_list}
22+
language_dict = {lang.key(): lang for lang in languages_list}
2323
category_dict = {c.key(): c for c in categories_list}
2424

2525
langs = []

app/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def import_resources(db): # pragma: no cover
3030

3131
# Convert to dict for quick lookup
3232
existing_resources = {r.key(): r for r in resources_list}
33-
language_dict = {l.key(): l for l in languages_list}
33+
language_dict = {lang.key(): lang for lang in languages_list}
3434
category_dict = {c.key(): c for c in categories_list}
3535
except AttributeError as e:
3636
print('-------> EXCEPTION OCCURED DURING DB SETUP')

0 commit comments

Comments
 (0)