definining database functions
This commit is contained in:
19
database.py
19
database.py
@@ -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
BIN
database.pyc
Normal file
Binary file not shown.
4
main.py
Normal file
4
main.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
from user_input import *
|
||||||
|
from database import *
|
||||||
|
|
||||||
|
parse_input()
|
||||||
@@ -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...')
|
||||||
Reference in New Issue
Block a user