From 67c7dbdd19afcc17816e43ff66873e76101704a5 Mon Sep 17 00:00:00 2001 From: ngharo Date: Thu, 28 Dec 2017 00:48:34 -0600 Subject: Got CRU part of CRUD working decently --- server/lib/uuid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/lib') diff --git a/server/lib/uuid.py b/server/lib/uuid.py index 9558f21..e77e3a8 100644 --- a/server/lib/uuid.py +++ b/server/lib/uuid.py @@ -1,4 +1,4 @@ -from uuid import UUID +from uuid import UUID, uuid4 def validate(uuid_to_test, version=4): try: @@ -7,3 +7,6 @@ def validate(uuid_to_test, version=4): return False return str(uuid_obj) == uuid_to_test + +def gen(): + return str(uuid4()) -- cgit v1.2.3