From 387b7f10969142d10af236f4ee3a3a0e73566350 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 24 May 2021 20:42:29 -0700 Subject: [PATCH] Rename Photo.bytestring -> bytes_string. --- etiquette/objects.py | 4 ++-- frontends/etiquette_flask/templates/cards.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index 4ba3cbb..46f7aa1 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -905,7 +905,7 @@ class Photo(ObjectBase): return None @property - def bytestring(self): + def bytes_string(self): if self.bytes is not None: return bytestring.bytestring(self.bytes) return '??? b' @@ -1079,7 +1079,7 @@ class Photo(ObjectBase): 'bytes': self.bytes, 'duration_string': self.duration_string, 'duration': self.duration, - 'bytes_string': self.bytestring, + 'bytes_string': self.bytes_string, 'has_thumbnail': bool(self.thumbnail), 'created': self.created, 'filename': self.basename, diff --git a/frontends/etiquette_flask/templates/cards.html b/frontends/etiquette_flask/templates/cards.html index 2bff530..ef95f90 100644 --- a/frontends/etiquette_flask/templates/cards.html +++ b/frontends/etiquette_flask/templates/cards.html @@ -138,7 +138,7 @@ draggable="true" {{- metadatas|join_and_trail(", ")|safe -}} - {{photo.bytestring}} + {{photo.bytes_string}} {% if view == "grid" %}