definining database functions

This commit is contained in:
Mikayla Dobson
2022-04-06 11:25:13 -05:00
parent 3e2aae66d8
commit 7632e72ef5
4 changed files with 23 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import sqlite3 import sqlite3
from typing import ParamSpecArgs
from user_input import * from user_input import *
# establish a connection to a .db file and create a cursor object # establish a connection to a .db file and create a cursor object
@@ -38,4 +39,20 @@ print(len(table_rows))
""" """
parse_input() # Functions to define:
# 1) Select all timestamps
# 2) Find a timestamp by date range
# 3) Calculate total hours for the week
# 4) Calculate complete sum of hours
def get_all_stamps():
pass
def get_stamp_by_date():
pass
def get_weekly_hours():
pass
def get_all_hours():
pass

BIN
database.pyc Normal file

Binary file not shown.

4
main.py Normal file
View File

@@ -0,0 +1,4 @@
from user_input import *
from database import *
parse_input()

View File

@@ -13,4 +13,4 @@ def parse_input():
print(user_prompt) print(user_prompt)
response = input("Enter your selection: ") response = input("Enter your selection: ")
print() print(f'You selected {response}. Working...')