commit 5575f7bd9038ebad4773964eba8165d25ddece84
parent f5ffcf12f2e638850d00185db592575869ff234f
Author: Brennen T. Mazur <brennen@madis.cool>
Date: Sat, 11 Feb 2023 11:11:17 -0700
Merge branch 'auth' of git.brennen.work:stc into auth
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/app/models.py b/app/models.py
@@ -99,7 +99,7 @@ class User():
class Time:
- def clockin(self):
+ def clockin(self, clockin):
clockin = {
'_id': int,
'clock_in': Optional[datetime.datetime.utcnow],
@@ -110,7 +110,7 @@ class Time:
return jsonify(clockin), 200
- def clockout(self):
+ def clockout(self, clockout):
clockout = {
'_id': int,
'clock_out': Optional[datetime.datetime.utcnow],
@@ -146,7 +146,7 @@ class Time:
class Fleet:
- def vehicle_repair(self):
+ def vehicle_repair(self, vehicle_repair):
vehicle_repair = {
'_id': int,
'date': Optional[datetime.datetime.utcnow],
@@ -172,7 +172,7 @@ class Fleet:
class Agreement:
- def document(self):
+ def document(self, document):
document = {
'_id': int, #forign key to user
'start_date': int,
@@ -193,7 +193,7 @@ class Agreement:
class Projects:#Projects references agreement
- def project(self):
+ def project(self, project):
project = {
'project_id': int,
'project_name': str,