From f07fd91889749bec2b7a5fce3af4f10b3e2b3f73 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 19 May 2021 17:42:17 +0100 Subject: updated repr() for Master associated with a month --- datamaps/plugins/dft/master.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'datamaps/plugins/dft') diff --git a/datamaps/plugins/dft/master.py b/datamaps/plugins/dft/master.py index 324b63d..edd79ee 100644 --- a/datamaps/plugins/dft/master.py +++ b/datamaps/plugins/dft/master.py @@ -272,4 +272,7 @@ class Master: return False def __repr__(self): - return f"Master({self.path}, {self.quarter.quarter}, {self.quarter.year})" + if self._declared_month: + return f"Master for {self.month} - {self.month.year}({self.path}, {self.quarter.quarter}, {self.quarter.year})" + else: + return f"Master({self.path}, {self.quarter.quarter}, {self.quarter.year})" -- cgit v1.2.3