From c2b9cdbeed4d2c7e28d0732d159393736be34da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 3 Aug 2020 21:51:04 +0800 Subject: [PATCH] Renamed the set_this_month() method to _set_this_month() to change it to private in Period.Parser in the Mia core application. --- mia_core/period.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mia_core/period.py b/mia_core/period.py index 159594f..d485ab0 100644 --- a/mia_core/period.py +++ b/mia_core/period.py @@ -432,7 +432,7 @@ class Period: self.error = None if spec is None: - self.set_this_month() + self._set_this_month() return self.spec = spec # A specific month @@ -565,7 +565,7 @@ class Period: # Wrong period format raise ValueError - def set_this_month(self): + def _set_this_month(self): """Sets the period to this month.""" today = timezone.localdate() self.spec = dateformat.format(today, "Y-m")