commit 4dd9a8a9db9d77c23343c8df6abc8b8b38cd652e
parent 954028c0a7e74d2e4987b112f9c4ae92e62baff5
Author: Brennen T. Mazur <brennen@madis.cool>
Date: Wed, 8 Feb 2023 14:15:35 -0700
changed names to username and time modified by to array with owner being index 0
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/seeds.py b/seeds.py
@@ -65,7 +65,7 @@ user2 = {
# Time documents
time1 = {
'clock_in': datetime.datetime.utcnow(), #System time Clock_out should be optional, but can clock_in?
- 'modified_by': 'Nikolas', #link to _id of user
+ 'modified_by': ['nikolasmmazur'], #link to _id of user
'date': datetime.date.today(), # Date at document submit
'project': 'Project 2', #Probably link with projects foreign key
'clock_out': datetime.datetime.utcnow(), #System time
@@ -76,7 +76,7 @@ time1 = {
time2 = {
'clock_in': datetime.datetime.utcnow(), #System time Clock_out should be optional, but can clock_in?
- 'modified_by': 'Nikolas', #link to _id of user
+ 'modified_by': ['nikolasmmazur','brennentmazur'], #link to _id of user
'date': datetime.date.today(), # Date at document submit
'project': 'Project 2', #Probably link with projects foreign key
'clock_out': datetime.datetime.utcnow(), #System time
@@ -88,7 +88,7 @@ time2 = {
# Fleet documents
fleet1 = {
'date': datetime.date.today(),
- 'operator': 'Brennen', #forign key to userID
+ 'operator': 'brennentmazur', #forign key to userID
# 'safety_checks': True, #array for different safety checks
'additional_notes': 'Oil needs checked',
'vehicle': 'The Big Truck', #vehicleID
@@ -98,7 +98,7 @@ fleet1 = {
fleet2 = {
'date': datetime.date.today(),
- 'operator': 'Nikolas', #forign key to userID
+ 'operator': 'nikolasmmazur', #forign key to userID
# 'safety_checks': True, #array for different safety checks
'additional_notes': 'Tires need replaced',
'vehicle': 'The Small Truck', #vehicleID
@@ -169,4 +169,4 @@ for x in agreement_collection.find():
print(x)
for x in projects_collection.find():
- print(x)
-\ No newline at end of file
+ print(x)