Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/i2mint/dol
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Jan 4, 2024
2 parents 386c6bd + 1f316dc commit 2474b6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dol/appendable.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def item2kv(item):
return time_postproc(factor * utc_now() + offset_s), item

return item2kv

@staticmethod
def uuid_key(hex=True):
"""Make an item2kv function that uses a uuid hex as the key.
Expand All @@ -254,11 +254,14 @@ def uuid_key(hex=True):
"""
import uuid

if hex:

def item2kv(item):
return uuid.uuid1().hex, item

else:

def item2kv(item):
return uuid.uuid1(), item

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = dol
version = 0.2.26
version = 0.2.27
url = https://github.com/i2mint/dol
platforms = any
description_file = README.md
Expand Down

0 comments on commit 2474b6b

Please sign in to comment.