diff --git a/PriceSystem/.~lock.ppd4.xls# b/PriceSystem/.~lock.ppd4.xls# deleted file mode 100644 index e8a31cf..0000000 --- a/PriceSystem/.~lock.ppd4.xls# +++ /dev/null @@ -1 +0,0 @@ -,luogan,luogan-Precision-Tower-3620,09.04.2018 09:15,file:///home/luogan/.config/libreoffice/4; \ No newline at end of file diff --git a/PriceSystem/fangjia/__init__.py b/PriceSystem/fangjia/__init__.py index feddcc9..6893b60 100644 --- a/PriceSystem/fangjia/__init__.py +++ b/PriceSystem/fangjia/__init__.py @@ -125,12 +125,16 @@ def get_region(city): def get_weekend(): + """ + 返回本周周末 + :return: + """ now = datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0) for day in range(1, 9): if calendar.weekday(now.year, now.month, now.day) == 6: break now = now + datetime.timedelta(days=1) - now = now - datetime.timedelta(days=7) + now = now - datetime.timedelta(days=14) pacific = pytz.timezone('Asia/Shanghai') return pacific.localize(now) diff --git a/logs/myeasylog.log b/logs/myeasylog.log deleted file mode 100644 index e69de29..0000000