Sem marks fixed

This commit is contained in:
RIT Services
2026-08-21 08:24:51 +00:00
parent 024cef38c5
commit 00b71831ee
2 changed files with 3 additions and 13 deletions

View File

@@ -167,20 +167,10 @@ public class WebhookController {
studentMenuHandler.handleMenuSelection(phoneNumber, selectedListId); studentMenuHandler.handleMenuSelection(phoneNumber, selectedListId);
} else if (selectedListId.startsWith("sem_")) { } else if (selectedListId.startsWith("sem_")) {
// They clicked an option from the semester selection list // They clicked an option from the semester selection list
if (currentState == UserState.AWAITING_SEMESTER_SELECTION) { studentMenuHandler.handleSemesterSelection(phoneNumber, selectedListId);
studentMenuHandler.handleSemesterSelection(phoneNumber, selectedListId);
} else {
messageService.sendMessage(phoneNumber, "This menu selection is no longer active.");
studentMenuHandler.sendMainMenu(phoneNumber);
}
} else if (selectedListId.startsWith("receipt_") || selectedListId.startsWith("exam_") || selectedListId.startsWith("acad_") || selectedListId.startsWith("cons_")) { } else if (selectedListId.startsWith("receipt_") || selectedListId.startsWith("exam_") || selectedListId.startsWith("acad_") || selectedListId.startsWith("cons_")) {
// They clicked a receipt download option // They clicked a receipt download option
if (currentState == UserState.AWAITING_RECEIPT_SELECTION) { studentMenuHandler.handleReceiptSelection(phoneNumber, selectedListId);
studentMenuHandler.handleReceiptSelection(phoneNumber, selectedListId);
} else {
messageService.sendMessage(phoneNumber, "This menu selection is no longer active.");
studentMenuHandler.sendMainMenu(phoneNumber);
}
} else { } else {
studentMenuHandler.sendMainMenu(phoneNumber); studentMenuHandler.sendMainMenu(phoneNumber);
} }

View File

@@ -18,4 +18,4 @@ spring.jpa.hibernate.ddl-auto=update
# Encryption Secret for Passcodes (Must be 16, 24, or 32 bytes) # Encryption Secret for Passcodes (Must be 16, 24, or 32 bytes)
bot.encryption.secret=12345678901234567890123456789012 bot.encryption.secret=12345678901234567890123456789012
whatsapp.api-token=EAAc3Wjql00oBSYnCGsx7aUPvhT4zXSbuH5XREbSdaNwqihp0Sf7HJUC8KnzdxCexSjSzAGjuZB5CDCi5qF2gu8LmgqNv6hZA1hXuPkRA3N26d6Uoo5ZAvOCl4vEqZBPuL9tmmRuck3tqkck4ltNczYSGsf4TYxZB9m57CnLZCiRgDX8FS8mNtXLrG6uIwcZAWp4x46YDhTxttqH68fwXONvltayCrmcuD2TnBDMQHS2IwyGDboR3JYlypHApZC25DsElG5ZAfP0DNcV6eYIzc0TZBW34KQ whatsapp.api-token=EAAc3Wjql00oBSfkmo5fYUjw1Wu8vzvG4zbeMgt40cZBKqNJNo56or7IlwV1HYV3Ue6ZB2nZAZALbE4TTtxxZB7r4WhdAcJKzgW7FVSRd4qxAm6EZAIHzZBirogyC4zXyodmsf6hXmaa9oeAiIfOeoiHkTZBZBhv43jFZAu1yJGr9CteScbRRjS1sdt1F0twZCkMYXZCyZCZBzQzptnGoAiEsJhDUIe5DtTWD8k7IkWDvmV7MvsT6DhrjRIcYPDvwIek3EWVZBGAFFsZCFtoyUA6ICgiJ2WEWzE0c