Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* python/mushin/model/couch.py:

	  Show 8 characters for id after new collision.
  • Loading branch information...
commit 1f34b68ee4891cd0f03e7fc5bc32d64e9c1a0fed 1 parent 1ce1fc7
Thomas Vander Stichele authored
Showing with 7 additions and 2 deletions.
  1. +5 −0 ChangeLog
  2. +2 −2 python/mushin/model/couch.py
View
5 ChangeLog
@@ -1,5 +1,10 @@
2012-09-05 Thomas Vander Stichele <thomas at apestaart dot org>
+ * python/mushin/model/couch.py:
+ Show 8 characters for id after new collision.
+
+2012-09-05 Thomas Vander Stichele <thomas at apestaart dot org>
+
* python/mushin/common/logcommand.py:
Hook up warning and error too.
View
4 python/mushin/model/couch.py
@@ -41,8 +41,8 @@ class Thing(mapping.Document, log.Loggable):
recurrence = mapping.IntegerField() # in seconds
def shortid(self):
- # last 6 chars reversed
- return self.id[:-7:-1]
+ # last 8 chars reversed
+ return self.id[:-9:-1]
# lifted from yagtd.py
def _needed_hours(self):
Please sign in to comment.
Something went wrong with that request. Please try again.