Skip to content

Commit

Permalink
getting term right
Browse files Browse the repository at this point in the history
  • Loading branch information
chamhayden committed Apr 1, 2024
1 parent 97a35a3 commit 3cd288d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const parseGroups = (raw) => {
const buildGroups = (term) => {
return ((innerTerm) => {
return new Promise((resolve, reject) => {
const { stdout } = shell.exec(`rm -rf /tmp/gl && git clone [email protected]:COMP6080/23T3/STAFF/administration.git /tmp/gl && cd /tmp/gl && cat groups.csv`)
const { stdout } = shell.exec(`rm -rf /tmp/gl && git clone [email protected]:COMP6080/${term}/STAFF/administration.git /tmp/gl && cd /tmp/gl && cat groups.csv`)
setTimeout(() => buildGroups(innerTerm), 1000 * 60 * 10); // 10 minutes
lock.acquire('data', (done) => {
builtData[innerTerm].groups = parseGroups(stdout);
Expand Down

0 comments on commit 3cd288d

Please sign in to comment.