commit 551584ffe48d00e918cca66cfd5e7584fba805ae
parent caf808e3c1f25dcafa58ffcb7bf2ef4540053b9a
Author: Brennen T. Mazur <brennen@madis.cool>
Date: Fri, 31 Mar 2023 11:24:20 -0600
fix clockin and clockout datatypes for seeded data
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/seeds.py b/seeds.py
@@ -83,22 +83,20 @@ user3 = {
# Time documents
time1 = {
- 'clock_in': datetime.datetime.utcnow(), #System time Clock_out should be optional, but can clock_in?
+ 'clock_in': [datetime.datetime.utcnow()], #System time Clock_out should be optional, but can clock_in?
'modified_by': ['nikolasmmazur'], #link to _id of user
- 'date': datetime.datetime.today(), # Date at document submit
'project': 'Project 2', #Probably link with projects foreign key
- 'clock_out': datetime.datetime.utcnow(), #System time
+ 'clock_out': [datetime.datetime.utcnow()], #System time
'note': 'Changed due to clocking out early',
'per_diem': False,
# 'total_time':
}
time2 = {
- 'clock_in': datetime.datetime.utcnow(), #System time Clock_out should be optional, but can clock_in?
+ 'clock_in': [datetime.datetime.utcnow()], #System time Clock_out should be optional, but can clock_in?
'modified_by': ['nikolasmmazur','brennentmazur'], #link to _id of user
- 'date': datetime.datetime.today(), # Date at document submit
'project': 'Project 2', #Probably link with projects foreign key
- 'clock_out': datetime.datetime.utcnow(), #System time
+ 'clock_out': [datetime.datetime.utcnow()], #System time
'note': 'Changed due to clocking out early',
'per_diem': False,
# 'total_time':