roundabout,
created on Tuesday, 23 April 2024, 15:30:50 (1713886250),
received on Wednesday, 31 July 2024, 06:54:46 (1722408886)
Author identity: vlad <vlad.muntoiu@gmail.com>
3ca062e3d39c3c607e1532df4eaa8f3e09da6b96
models.py
@@ -131,8 +131,16 @@ with (app.app_context()):
# Create the configuration repo
config_repo = Repo(self, ".config", 0)
db.session.add(config_repo)
notification = Notification({"type": "welcome"})
db.session.add(notification)
db.session.commit()
user_notification = UserNotification(self, notification, 1)
db.session.add(user_notification)
db.session.flush()
celery_tasks.send_notification.apply_async(args=[user_notification.id])
class Repo(db.Model):
route = db.Column(db.String(98), unique=True, nullable=False, primary_key=True)