diff options
Diffstat (limited to 'src/mailman/database/types.py')
| -rw-r--r-- | src/mailman/database/types.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py index f6350f3b9..43c6057dc 100644 --- a/src/mailman/database/types.py +++ b/src/mailman/database/types.py @@ -77,10 +77,8 @@ class UUID(TypeDecorator): return str(value) else: if not isinstance(value, uuid.UUID): - return "%.32x" % uuid.UUID(value) - else: - # hexstring - return "%.32x" % value + value = uuid.UUID(value) + return '%.32x' % value.int def process_result_value(self, value, dialect): if value is None: |
