diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-12 13:30:36 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-12 13:30:36 +0000 |
commit | c75080fd3a563891256751effe552e7721cb906e (patch) | |
tree | bbf3ee14d69a302bdb4626c5b3204ca349e3eb83 | |
parent | 209d2f0b87eccc32a83c5ef409e9444346c4b8ab (diff) |
Tweaks a select func
-rwxr-xr-x | tjp.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -39,10 +39,14 @@ list_personal_entries() { } # Function to select all MOD entries +# list_MOD_entries() { +# psql -h "$HOST" -U "$USER" -d "$DB" -c "\x" -c "SELECT * FROM journal_entries WHERE type = 1;" +# } list_MOD_entries() { - psql -h "$HOST" -U "$USER" -d "$DB" -c "\x" -c "SELECT * FROM journal_entries WHERE type = 1;" + psql -h "$HOST" -U "$USER" -d "$DB" -c "\x" -c "SELECT id, date_added, entry, comment, meeting_id FROM journal_entries WHERE type = 1;" } + # Function to list all MOD contacts list_MOD_contacts() { psql -h "$HOST" -U "$USER" -d "$DB_CONTACTS" -c "SELECT id, first_name, last_name, email, phone, contact_comments FROM contacts WHERE contact_type = 3;" |