diff options
author | ngharo <nick@ngha.ro> | 2017-12-28 00:48:34 -0600 |
---|---|---|
committer | ngharo <nick@ngha.ro> | 2017-12-28 00:48:34 -0600 |
commit | 67c7dbdd19afcc17816e43ff66873e76101704a5 (patch) | |
tree | 46fb4285199570de63cc593c67198686f6a54a2d /server/lib | |
parent | df3f5844ea334a83955efbab7f58861ae6ccd763 (diff) | |
download | imOk-www-67c7dbdd19afcc17816e43ff66873e76101704a5.tar.xz imOk-www-67c7dbdd19afcc17816e43ff66873e76101704a5.zip |
Got CRU part of CRUD working decently
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/uuid.py | 5 |
1 files changed, 4 insertions, 1 deletions
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()) |