mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Seed date fields correctly during validation.
We were seeding them with random strings.
This commit is contained in:
parent
f2b6008e5f
commit
31f724b0c3
@ -541,6 +541,8 @@ class WorkflowService(object):
|
||||
return FileSchema().dump(file)
|
||||
elif field.type == 'files':
|
||||
return random.randrange(1, 100)
|
||||
elif field.type == 'date':
|
||||
return datetime.utcnow()
|
||||
else:
|
||||
return WorkflowService._random_string()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user