Skip to content

Commit

Permalink
adding queries to mark people as active and inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFarquaadtheCreator committed Sep 3, 2024
1 parent a17d180 commit 60fd2c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/pgQueries.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ def __init__(self):
self.add_person = """ INSERT INTO people (first_name, middle_name, last_name,
personal_email, cuny_email, preferred_email, discord, emplid)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s) RETURNING uid"""
self.mark_inactive = """ UPDATE people SET active = false WHERE uid = (%s) """
self.mark_active = """ UPDATE people SET active = true WHERE uid = (%s) """

0 comments on commit 60fd2c8

Please sign in to comment.