aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/plugins
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2021-05-19 17:42:17 +0100
committerMatthew Lemon <matt@matthewlemon.com>2021-05-19 17:42:25 +0100
commitf07fd91889749bec2b7a5fce3af4f10b3e2b3f73 (patch)
treefc639089aec8c6a4a24889053f7ef1ad7915af46 /datamaps/plugins
parent2ed09e9b628ec32131e981d467591d20acd1455d (diff)
updated repr() for Master associated with a month
Diffstat (limited to 'datamaps/plugins')
-rw-r--r--datamaps/plugins/dft/master.py5
1 files changed, 4 insertions, 1 deletions
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})"