first option detailed

This commit is contained in:
Mikayla Dobson
2022-04-06 12:06:14 -05:00
parent 1b804314da
commit 1880b60602
3 changed files with 50 additions and 8 deletions

View File

@@ -27,10 +27,17 @@ cur.executemany("INSERT INTO TIMESTAMPS VALUES (?, ?, ?, ?, ?)", timestamp_list)
def get_all_stamps():
return cur.execute("SELECT * FROM TIMESTAMPS;")
def get_number_of_stamps(input):
table_rows = []
for row in cur.execute("SELECT * FROM TIMESTAMPS;"):
table_rows.append(row)
table_values = cur.execute("SELECT * FROM TIMESTAMPS;")
iterator = 0
while (iterator < input):
table_rows.append(table_values[iterator])
iterator += 1
return table_rows
def get_table_length():
@@ -39,6 +46,7 @@ def get_table_length():
table_rows.append(row)
return len(table_rows)
def get_stamp_by_date():
pass