Open scizzorz opened 11 years ago
Anonymous feedback for the class? Or pyboard in general?
Uhh, my original intent was for the class, but I guess Pyboard feedback wouldn't be bad? Although they could pretty easily leave anon feedback on GitHub by just making a throwaway account and opening an issue... I'd say just do it for the class.
Might want an option to disable this, though. Some teachers may not like feedback...
True. Good idea
app.config['FEEDBACK'] = True|False
Simple enough. Or whatever the syntax is in serverconfig.py
, I forgot.
This issue should actually be really trivial to implement. Grab the /email/to
endpoint from a previous commit and change the yous
to the admins and the from
to app.config['EMAIL_FROM']
or whatever, with a hardcoded subject of 'Anonymous feedback for ' + app.config['COURSE_NAME']
. Admins can probably be grabbed with a list comprehension like admins = [User(x) for x in os.listdir('users')]
and then admins = [x.email for x in admins if x.section == 'admin']
.
You know, for anonymous feedback. Could just send email to all the admins instead of recording it as a file.