Renamed the set_this_month() method to _set_this_month() to change it to private in Period.Parser in the Mia core application.
This commit is contained in:
parent
95e0173126
commit
c2b9cdbeed
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user