From: Michael Tremer Date: Fri, 24 Jan 2025 16:24:35 +0000 (+0000) Subject: events: Correctly show the bug ID X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cca0e1fc1f19c670c1ac08a603f199ac97148725;p=pbs.git events: Correctly show the bug ID Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/events.py b/src/buildservice/events.py index a759ee3e..f8ea25a0 100644 --- a/src/buildservice/events.py +++ b/src/buildservice/events.py @@ -1086,7 +1086,7 @@ class Event(database.Base): # Bug - bug = Column(Integer) + bug_id = Column(Integer) # Error diff --git a/src/templates/events/macros.html b/src/templates/events/macros.html index 38b24a17..8445a553 100644 --- a/src/templates/events/macros.html +++ b/src/templates/events/macros.html @@ -173,9 +173,9 @@ {% elif event.type == "build-watcher-removed" %} {{ _("%s stopped watching this build") % event.user }} {% elif event.type == "build-bug-added" %} - {{ _("Bug #%s has been added") % event.bug }} + {{ _("Bug #%s has been added") % event.bug_id }} {% elif event.type == "build-bug-removed" %} - {{ _("Bug #%s has been removed") % event.bug }} + {{ _("Bug #%s has been removed") % event.bug_id }} {% elif event.type == "build-points" %} {% if event.points > 0 %} {{ _("This build has gained one point", "This build has gained %(points)s points", event.points) % { "points" : event.points } }}