Merge branch 'master' of ayu.incorporeal.org:dr.botzo
This commit is contained in:
commit
d53e2d108c
|
@ -46,6 +46,7 @@ class Seen(Module):
|
||||||
|
|
||||||
seen_nick.host = userhost
|
seen_nick.host = userhost
|
||||||
seen_nick.what = what
|
seen_nick.what = what
|
||||||
|
seen_nick.seen_time = timezone.now()
|
||||||
seen_nick.save()
|
seen_nick.save()
|
||||||
|
|
||||||
match = re.search('^!seen\s+(\S+)$', what)
|
match = re.search('^!seen\s+(\S+)$', what)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
||||||
from django_extensions.db.fields import ModificationDateTimeField
|
|
||||||
|
|
||||||
|
|
||||||
class SeenNick(models.Model):
|
class SeenNick(models.Model):
|
||||||
|
|
||||||
|
@ -12,7 +10,7 @@ class SeenNick(models.Model):
|
||||||
channel = models.CharField(max_length=64)
|
channel = models.CharField(max_length=64)
|
||||||
|
|
||||||
host = models.CharField(max_length=255)
|
host = models.CharField(max_length=255)
|
||||||
seen_time = ModificationDateTimeField(editable=True)
|
seen_time = models.DateTimeField(default=timezone.now)
|
||||||
what = models.TextField()
|
what = models.TextField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue