mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
lxmf messages api should support filtering for specific conversations
This commit is contained in:
parent
db90498d03
commit
a195f5e257
2 changed files with 23 additions and 8 deletions
|
|
@ -24,11 +24,6 @@ class LxmfMessage(BaseModel):
|
|||
created_at = DateTimeField(default=datetime.now)
|
||||
updated_at = DateTimeField(default=datetime.now)
|
||||
|
||||
# override save to auto update updated_at when calling save()
|
||||
def save(self, *args, **kwargs):
|
||||
self.updated_at = datetime.now()
|
||||
return super(LxmfMessage, self).save(*args, **kwargs)
|
||||
|
||||
# define database and table name
|
||||
class Meta:
|
||||
table_name = "lxmf_messages"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue