roundabout,
created on Monday, 29 April 2024, 06:19:24 (1714371564),
received on Wednesday, 31 July 2024, 06:54:47 (1722408887)
Author identity: vlad <vlad.muntoiu@gmail.com>
aeccb394868ce24c971e4e7e30d2915924ad9633
models.py
@@ -212,7 +212,8 @@ with (app.app_context()):
db.session.flush() # save the notification to get the ID # Send a notification to all users who have enabled commit notifications for this repo for user in RepoFavourite.query.filter_by(repo_route=repo.route, notify_commit=True).all():for relationship in RepoFavourite.query.filter_by(repo_route=repo.route, notify_commit=True).all(): user = relationship.useruser_notification = UserNotification(user, notification, 1) db.session.add(user_notification) db.session.flush()