MCPcopy Create free account
hub / github.com/edmar/whenx / list

Function list

whenx/console.py:40–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def list():
41 teams = db.query(Team).all()
42
43 # Create a new table with the column headers
44 table = PrettyTable()
45 table.field_names = ["ID", "Mission", "Last Update"]
46
47 # Add each team to the table as a new row
48 for team in teams:
49 table.add_row([team.id, team.name, team.updated_at])
50
51 # Print the table to the console
52 print(table)
53
54
55def delete(id):

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected