Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Aug 27, 2024
1 parent 1e81d16 commit 378f401
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@

# Enable binary delta compression for PNG files
*.png -delta

5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.0
Expand Down
8 changes: 4 additions & 4 deletions web/dashboard/main_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,23 +496,23 @@ def updated_echart_plot(self):
if splitting_var == "affiliation_country":
splitting_var_filter = self.filter_affiliation_country
splitting_var_column = "affiliation_country"
splitting_var_query = lambda cell, selected_item: selected_item in cell
splitting_var_query = lambda cell, selected_item: selected_item in cell # noqa: E731

elif splitting_var == "funder":
splitting_var_filter = self.filter_funder
splitting_var_column = "funder"
splitting_var_query = lambda cell, selected_item: selected_item in cell
splitting_var_query = lambda cell, selected_item: selected_item in cell # noqa: E731

elif splitting_var == "data_tags":
splitting_var_filter = self.filter_tags
splitting_var_column = "data_tags"
splitting_var_query = lambda cell, selected_item: selected_item in cell
splitting_var_query = lambda cell, selected_item: selected_item in cell # noqa: E731

else:
print("Defaulting to splitting var 'journal' ")
splitting_var_filter = self.filter_journal
splitting_var_column = "journal"
splitting_var_query = lambda cell, selected_item: cell == selected_item
splitting_var_query = lambda cell, selected_item: cell == selected_item # noqa: E731

last_year_values = {}
for selected_item in sorted(splitting_var_filter):
Expand Down

0 comments on commit 378f401

Please sign in to comment.