Files
Django/config/management/commands/repair_wechat_income.py

16 lines
712 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""【已废弃】请用 sync_daily_income_from_log本命令曾导致重复记账。"""
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = '已废弃:勿使用。请改用 python manage.py sync_daily_income_from_log --reset-day'
def handle(self, *args, **options):
self.stderr.write(self.style.ERROR(
'repair_wechat_income 已禁用(会对已入账订单重复加钱)。\n'
'纠正今日虚高请执行:\n'
' python manage.py sync_daily_income_from_log --reset-day\n'
'可选同时重算累计:\n'
' python manage.py sync_daily_income_from_log --reset-day --sync-szjilu'
))