From e428cd0672431455d53bc7a8ffbf798b2774c7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Thu, 13 Feb 2025 10:55:00 +0100 Subject: [PATCH] fix: don't print the full author/user object when calling Quote().to_pretty() --- charts/huesoporro/Chart.yaml | 4 ++-- charts/huesoporro/values.yaml | 2 +- src/huesoporro/models.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/huesoporro/Chart.yaml b/charts/huesoporro/Chart.yaml index 2a20244..eb7dbf9 100644 --- a/charts/huesoporro/Chart.yaml +++ b/charts/huesoporro/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.6 +version: 0.2.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.2.6" +appVersion: "0.2.7" diff --git a/charts/huesoporro/values.yaml b/charts/huesoporro/values.yaml index 2e78aef..e154a85 100644 --- a/charts/huesoporro/values.yaml +++ b/charts/huesoporro/values.yaml @@ -11,7 +11,7 @@ image: # This sets the pull policy for images. pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. - tag: "0.2.6" + tag: "0.2.7" # This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ imagePullSecrets: [] diff --git a/src/huesoporro/models.py b/src/huesoporro/models.py index 7222887..86f977b 100644 --- a/src/huesoporro/models.py +++ b/src/huesoporro/models.py @@ -80,7 +80,7 @@ class Quote(BaseModel): last_updated_at: datetime.datetime def as_pretty(self) -> str: - return f"«{self.quote}» - {self.author}" + return f"«{self.quote}» - {self.author.user}" def as_pretty_saved(self): - return f"He añadido la cita «{self.quote}» de {self.author}" + return f"He añadido la cita «{self.quote}» de {self.author.user}"