mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix valid 39 characters uuid not being inserted
This commit is contained in:
parent
eb0f0b6c4f
commit
ca1a4878ce
1 changed files with 1 additions and 2 deletions
|
|
@ -96,8 +96,7 @@ async def assert_data(db_conn, es_client, users, uploaded_files):
|
|||
|
||||
def get_uuid(val):
|
||||
try:
|
||||
uuid.UUID(val, version=4)
|
||||
return val
|
||||
return uuid.UUID(val, version=4)
|
||||
except ValueError:
|
||||
id = convert_string_to_uuid(val)
|
||||
return id
|
||||
|
|
|
|||
Loading…
Reference in a new issue