We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c70a044 + 9a30782 commit 5246fe6Copy full SHA for 5246fe6
app/models/message.rb
@@ -87,6 +87,10 @@ def from_string(str)
87
end
88
89
90
+ def list
91
+ @list ||= List.find_by_id(list_id)
92
+ end
93
+
94
def count_recursively(count = 0)
95
count + 1 + (children&.sum(&:count_recursively) || 0)
96
bin/import_mails
@@ -34,7 +34,7 @@ Message.transaction do
34
STDERR.puts("#{list}:#{seq} already exists in Postgres")
35
rescue StandardError => e
36
errors << [seq, e]
37
- STDERR.puts("failed to import #{list}:#{seq}: #{e}")
+ STDERR.puts("failed to import #{list.name}:#{seq}: #{e}")
38
39
40
0 commit comments