Skip to content

Commit

Permalink
fix, now deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AIexandrKotov committed Apr 19, 2023
1 parent 13f2e01 commit 4855208
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ class Generators:
db_raname_generator,
]

__named_generators: dict[str, AbstractGenerator] = dict(
map(lambda generator: (str(generator), generator), __generators)
)
__named_generators: dict[str, AbstractGenerator] = {
str(generator): generator for generator in __generators
}

@staticmethod
def generator_exists(generator_name: str) -> bool:
Expand Down
10 changes: 3 additions & 7 deletions screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -1914,9 +1914,7 @@ def __init__(
top_bar.left_action_items = [
["menu", lambda _: self.nav_drawer.set_state("open")]
]
top_bar.right_action_items = [
["autorenew", lambda _: self.update_list()]
]
top_bar.right_action_items = [["autorenew", lambda _: self.update_list()]]

scroll_view = MDScrollView()
self.box = MDGridLayout()
Expand All @@ -1936,7 +1934,7 @@ def change_profile(self, new_profile: XNWPProfile) -> None:
def update(self, is_in_person_editor: bool) -> ChooseSamplePropertyScreen:
self.is_in_person_editor = is_in_person_editor
return self

def update_list(self) -> None:
self.box.clear_widgets()
for group in self.profile.sample_properties:
Expand Down Expand Up @@ -2661,9 +2659,7 @@ def __init__(
top_bar.left_action_items = [
["menu", lambda _: self.nav_drawer.set_state("open")]
]
top_bar.right_action_items = [
["autorenew", lambda _: self.update()]
]
top_bar.right_action_items = [["autorenew", lambda _: self.update()]]

scroll_view = MDScrollView()
self.box = MDGridLayout()
Expand Down

0 comments on commit 4855208

Please sign in to comment.