This commit is contained in:
guange 2019-01-18 17:29:22 +08:00
parent bf92a7e7e4
commit cfea494f93
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def get_last_month(num):
if month<=0: if month<=0:
month = 12 - (num-1) month = 12 - (num-1)
year -= 1 year -= 1
return "%d-%d" % (year, month) return "%d-%02d" % (year, month)
def collect_last_month_sells(spark): def collect_last_month_sells(spark):
data = {} data = {}