-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add notification endpoint #311
Add notification endpoint #311
Conversation
tfnribeiro
commented
Dec 3, 2024
•
edited
Loading
edited
- Added two new tables, corresponding logic and enpoints to support sending notifications to the users on the web.
- Instead of get_server_time_utc() we should use datetime.now(), updated the instances where this wasn't the case.
- Add failsafe if the user has no session
- Fixed typo in url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. let's deploy.
zeeguu/core/model/notification.py
Outdated
type = db.Column(db.String) | ||
|
||
# Should match the ids in the Database | ||
# this class is dined to make it easier to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should read defined!