stc

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

commit 61b3589d576984c0160559d5480e913c99dd7345
parent 9ab5614c7a9dba4a23f4a452e97d3adbbf8a02c6
Author: Nikolas Mazur <nikolas@pop-os.localdomain>
Date:   Wed,  4 Jan 2023 15:03:35 -0700

Fix seed collections

Diffstat:
Mapp.py | 10++++++++++
Mseeds.py | 8++++----
2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/app.py b/app.py @@ -38,6 +38,16 @@ login_manager.login_view = 'login' # return User.query.get(int(user_id)) # Login manager +# Database collections/documents +collection = db['users-collection'] # Make aditional user info single document/array + +collection = db['time-data-collection'] + +collection = db['fleet-collection'] + +collection = db['agreement-collection'] +# Database collections/documents + # Routes @app.route('/') def hello(): diff --git a/seeds.py b/seeds.py @@ -1,5 +1,5 @@ # Database collections/documents -collection = db['users-collection'] # Make aditional user info single document/array +# collection = db['users-collection'] # Make aditional user info single document/array post = {'name': 'Nikolas Mazur', 'role': 'Backend Developer', @@ -10,7 +10,7 @@ post = {'name': 'Nikolas Mazur', 'pay_period': 'Monthly', 'pay_value': 10} -collection = db['time-data-collection'] +# collection = db['time-data-collection'] post = {'time': datetime.datetime.utcnow(), 'clocked_in': datetime.datetime.utcnow(), @@ -21,9 +21,9 @@ post = {'time': datetime.datetime.utcnow(), 'project': ['Timecard'], 'Perdium': 0} -collection = db['fleet-collection'] +# collection = db['fleet-collection'] -collection = db['agreement-collection'] +# collection = db['agreement-collection'] # Database collections/documents \ No newline at end of file