mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-12 19:39:27 +03:00
575d9886c5
* feat: add notifications table * feat: add Notification model * feat: add notification repositories * feat: add upload and crawl notifications * feat: update notification message
12 lines
323 B
Python
12 lines
323 B
Python
from models.databases.supabase.notifications import CreateNotificationProperties
|
|
from models.settings import get_supabase_db
|
|
|
|
|
|
def add_notification(notification: CreateNotificationProperties):
|
|
"""
|
|
Add a notification
|
|
"""
|
|
supabase_db = get_supabase_db()
|
|
|
|
return supabase_db.add_notification(notification)
|