stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

commit fcb7215a1e8303a426f39467a7a55c700b28da01
parent b6fac98deccc417d70cb6b14484f49ce2ee5db2f
Author: Nikolas Mazur <nikolas@pop-os.localdomain>
Date:   Fri, 10 Feb 2023 15:48:55 -0700

Create additional class perameters

Diffstat:
Mapp/models.py | 10+++++-----
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,