ServeHours server

This commit is contained in:
Eden Kirin
2023-03-19 09:29:44 +01:00
parent 827f3d296f
commit 1050730047
9 changed files with 96 additions and 11 deletions

View File

@ -19,7 +19,7 @@ def get_hours() -> int:
with grpc.insecure_channel(f"{SERVE_HOURS_HOST}:{SERVE_HOURS_PORT}") as channel:
stub = serve_hours_pb2_grpc.ServeHoursStub(channel)
response = stub.GetHours(serve_hours_pb2.GetHoursRequest(timezone=TIMEZONE))
print("GetHours() response: " + response.message)
print("GetHours() response: ", response)
return response.hours