From 4faf08df5a317e1b8688701d3967b22b13bea05f Mon Sep 17 00:00:00 2001 From: frcroth Date: Tue, 17 Oct 2023 15:33:38 +0200 Subject: [PATCH] Add newlines --- client/.gitignore | 2 +- client/interactive/client.py | 12 +----------- client/interactive/client.tcss | 2 +- client/update_api.sh | 2 +- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/client/.gitignore b/client/.gitignore index cdb1aac..a1e4c98 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -4,4 +4,4 @@ __pycache__ fossildbapi_pb2_grpc.py fossildbapi_pb2.py -env \ No newline at end of file +env diff --git a/client/interactive/client.py b/client/interactive/client.py index bd83c81..f85145c 100644 --- a/client/interactive/client.py +++ b/client/interactive/client.py @@ -12,16 +12,6 @@ from textual.widgets import (Button, DataTable, Footer, Header, Input, Label, RichLog) -# import logging - -# logFile = "sample.log" -# logging.basicConfig( -# filename=logFile, -# filemode="a", -# level=logging.DEBUG, -# format="%(asctime)s - %(levelname)s: %(message)s", -# ) - class ListKeysWidget(Widget): def __init__(self, stub, **kwargs): @@ -46,7 +36,7 @@ class FileNameHint(Widget): filename = reactive("none") def render(self) -> str: - return f"Press the button above to save the value at the key in {self.filename}" + return f"Press the button above to download the value for the selected key to {self.filename}" class KeyInfoWidget(Widget): diff --git a/client/interactive/client.tcss b/client/interactive/client.tcss index 6fb7d83..b25df3f 100644 --- a/client/interactive/client.tcss +++ b/client/interactive/client.tcss @@ -13,4 +13,4 @@ ListKeysWidget #list-keys { Button { width: 100%; -} \ No newline at end of file +} diff --git a/client/update_api.sh b/client/update_api.sh index f4199db..5684dcb 100755 --- a/client/update_api.sh +++ b/client/update_api.sh @@ -4,4 +4,4 @@ set -Eeuo pipefail SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" python3 -m grpc_tools.protoc -I$SCRIPTPATH/../src/main/protobuf --python_out=$SCRIPTPATH --grpc_python_out=$SCRIPTPATH $SCRIPTPATH/../src/main/protobuf/fossildbapi.proto -cp $SCRIPTPATH/fossildbapi_pb2* $SCRIPTPATH/interactive/ \ No newline at end of file +cp $SCRIPTPATH/fossildbapi_pb2* $SCRIPTPATH/interactive/