Skip to content

Commit d827119

Browse files
committed
removed other postgres mention
1 parent 7240955 commit d827119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cs50/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def teardown_appcontext(exception):
353353

354354
# If INSERT, return primary key value for a newly inserted row (or None if none)
355355
elif command == "INSERT":
356-
if self._engine.url.get_backend_name() in ["postgres", "postgresql"]:
356+
if self._engine.url.get_backend_name() == "postgresql":
357357
try:
358358
result = connection.execute("SELECT LASTVAL()")
359359
ret = result.first()[0]

0 commit comments

Comments
 (0)