From 2626f3583371b81d5102e26965f03629cc13ba88 Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 19 Jan 2020 01:30:26 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/notify/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/notify/models.py b/spug_api/apps/notify/models.py index 584bb23..8590267 100644 --- a/spug_api/apps/notify/models.py +++ b/spug_api/apps/notify/models.py @@ -26,7 +26,7 @@ class Notify(models.Model, ModelMixin): created_at = models.CharField(max_length=20, default=human_datetime) @classmethod - def make_notify(cls, source, title, type, content=None, with_quiet=True): + def make_notify(cls, source, type, title, content=None, with_quiet=True): if not with_quiet or time.time() - cache.get('spug:notify_quiet', 0) > 3600: cache.set('spug:notify_quiet', time.time()) cls.objects.create(source=source, title=title, type=type, content=content)