Skip to content

Commit 4272b56

Browse files
committed
TR updates, first round
1 parent 3c40526 commit 4272b56

File tree

9 files changed

+6
-33
lines changed

9 files changed

+6
-33
lines changed

contact-book-python-textual/source_code/rpcontacts/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ContactsApp(App):
1818
("m", "toggle_dark", "Toggle dark mode"),
1919
("a", "add", "Add"),
2020
("d", "delete", "Delete"),
21-
("c", "clear", "Clear All"),
21+
("c", "clear_all", "Clear All"),
2222
("q", "request_quit", "Quit"),
2323
]
2424

contact-book-python-textual/source_code_step_2/rpcontacts/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ContactsApp(App):
1010
("m", "toggle_dark", "Toggle dark mode"),
1111
("a", "add", "Add"),
1212
("d", "delete", "Delete"),
13-
("c", "clear", "Clear All"),
13+
("c", "clear_all", "Clear All"),
1414
("q", "request_quit", "Quit"),
1515
]
1616

contact-book-python-textual/source_code_step_3/rpcontacts/database.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,3 @@ def delete_contact(self, id):
5050

5151
def clear_all_contacts(self):
5252
self._run_query("DELETE FROM contacts;")
53-
54-
55-
data = [
56-
("Linda", "111-2222-3333", "[email protected]"),
57-
("Joe", "111-2222-3333", "[email protected]"),
58-
("Lara", "111-2222-3333", "[email protected]"),
59-
("David", "111-2222-3333", "[email protected]"),
60-
("Jane", "111-2222-3333", "[email protected]"),
61-
]

contact-book-python-textual/source_code_step_3/rpcontacts/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ContactsApp(App):
1010
("m", "toggle_dark", "Toggle dark mode"),
1111
("a", "add", "Add"),
1212
("d", "delete", "Delete"),
13-
("c", "clear", "Clear All"),
13+
("c", "clear_all", "Clear All"),
1414
("q", "request_quit", "Quit"),
1515
]
1616

contact-book-python-textual/source_code_step_4/rpcontacts/database.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,3 @@ def delete_contact(self, id):
5050

5151
def clear_all_contacts(self):
5252
self._run_query("DELETE FROM contacts;")
53-
54-
55-
data = [
56-
("Linda", "111-2222-3333", "[email protected]"),
57-
("Joe", "111-2222-3333", "[email protected]"),
58-
("Lara", "111-2222-3333", "[email protected]"),
59-
("David", "111-2222-3333", "[email protected]"),
60-
("Jane", "111-2222-3333", "[email protected]"),
61-
]

contact-book-python-textual/source_code_step_4/rpcontacts/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ContactsApp(App):
1010
("m", "toggle_dark", "Toggle dark mode"),
1111
("a", "add", "Add"),
1212
("d", "delete", "Delete"),
13-
("c", "clear", "Clear All"),
13+
("c", "clear_all", "Clear All"),
1414
("q", "request_quit", "Quit"),
1515
]
1616

contact-book-python-textual/source_code_step_5/rpcontacts/database.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,3 @@ def delete_contact(self, id):
5050

5151
def clear_all_contacts(self):
5252
self._run_query("DELETE FROM contacts;")
53-
54-
55-
data = [
56-
("Linda", "111-2222-3333", "[email protected]"),
57-
("Joe", "111-2222-3333", "[email protected]"),
58-
("Lara", "111-2222-3333", "[email protected]"),
59-
("David", "111-2222-3333", "[email protected]"),
60-
("Jane", "111-2222-3333", "[email protected]"),
61-
]

contact-book-python-textual/source_code_step_5/rpcontacts/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ContactsApp(App):
1818
("m", "toggle_dark", "Toggle dark mode"),
1919
("a", "add", "Add"),
2020
("d", "delete", "Delete"),
21-
("c", "clear", "Clear All"),
21+
("c", "clear_all", "Clear All"),
2222
("q", "request_quit", "Quit"),
2323
]
2424

contact-book-python-textual/source_code_step_6/rpcontacts/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ContactsApp(App):
1818
("m", "toggle_dark", "Toggle dark mode"),
1919
("a", "add", "Add"),
2020
("d", "delete", "Delete"),
21-
("c", "clear", "Clear All"),
21+
("c", "clear_all", "Clear All"),
2222
("q", "request_quit", "Quit"),
2323
]
2424

0 commit comments

Comments
 (0)