Commit f4ec9a31 by fangxingjun

no message

parent d13750ba
...@@ -272,7 +272,7 @@ class Templates(object): ...@@ -272,7 +272,7 @@ class Templates(object):
self.year = tuple(df_week.year)[0] self.year = tuple(df_week.year)[0]
self.month = tuple(df_week.month)[0] self.month = tuple(df_week.month)[0]
print(f"self.year:{self.year}, self.month:{self.month}") print(f"self.year:{self.year}, self.month:{self.month}")
if self.date_type in ['month', 'month_old', 'month_week']: if self.date_type in ['month', 'month_old', 'month_week', 'month_aba_me']:
self.year_month = self.date_info self.year_month = self.date_info
self.year, self.month = self.year_month.split("-")[0], self.year_month.split("-")[1] self.year, self.month = self.year_month.split("-")[0], self.year_month.split("-")[1]
df_month = df.loc[df.year_month == self.year_month] df_month = df.loc[df.year_month == self.year_month]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment