Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slackbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from functools import lru_cache

__version__ = "0.1.5"
__version__ = "0.1.6"


@lru_cache
Expand Down
3 changes: 3 additions & 0 deletions slackbot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
user_team = models.CharField(max_length=32)
thread_message = models.JSONField(null=True, blank=True)

def __str__(self):
return self.channel

Check warning on line 112 in slackbot/models.py

View check run for this annotation

Codecov / codecov/patch

slackbot/models.py#L112

Added line #L112 was not covered by tests

class Meta:
constraints = [models.UniqueConstraint(fields=["ts", "channel"], name="unique_ts_channel")]
verbose_name = "Slack Message"
Expand Down