mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 00:43:04 +02:00
Update survey.py
This commit is contained in:
@@ -140,6 +140,8 @@ class SurveyModule:
|
||||
|
||||
def end_survey(self, user_id):
|
||||
"""End the survey for the user and save responses."""
|
||||
if user_id not in self.responses:
|
||||
return "No active survey session to end."
|
||||
self.save_responses(user_id)
|
||||
self.responses.pop(user_id, None)
|
||||
return "✅ Survey complete. Thank you for your responses!"
|
||||
|
||||
Reference in New Issue
Block a user