Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion runestone/server/chapternames.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def getTOCEntries(ftext):

def addChapterInfoToDB(subChapD, chapTitles, course_id):
dbname = 'runestone'
uname = os.environ['USER']
# Provide a default database URI if the ``USER`` environment variables is define (it is on Linux/Mac).
uname = os.environ.get('USER')
if uname == 'bnmnetp':
uname = 'bnmnetp_courselib'
dbname = 'bnmnetp_courselib'
Expand Down