Skip to content

Commit

Permalink
🩹 fix oneliner loading
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Oct 12, 2023
1 parent e5351fa commit c191a85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions userland/scripts/oneliners.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ class OnlinersApp(XthuluApp):
artwork: list[str]
banner: Label
error_message: Label
oneliners: list[str]
oneliners: list[Oneliner]

def __init__(
self,
context: SSHContext,
oneliners: list[str],
oneliners: list[Oneliner],
artwork: list[str],
**kwargs,
):
Expand Down Expand Up @@ -77,7 +77,7 @@ def compose(self):

# oneliners
list = ListView(
*[ListItem(Label(o)) for o in self.oneliners],
*[ListItem(Label(o.message)) for o in self.oneliners],
initial_index=len(self.oneliners) - 1,
)

Expand Down Expand Up @@ -146,7 +146,7 @@ def on_resize(self, event: events.Resize) -> None:

async def main(cx: SSHContext):
db = Resources().db
oneliners = [
oneliners: list[Oneliner] = [
oneliner
for oneliner in reversed(
await db.all(
Expand Down

0 comments on commit c191a85

Please sign in to comment.