Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Leere Definitionen nicht exportieren.

  • Loading branch information...
commit eb454dab934b320a0f4d5bf3737c15d70768c59d 1 parent 51a8433
@rogerbraun authored
Showing with 1 addition and 1 deletion.
  1. BIN  db/data.db
  2. +1 −1  models/definition.rb
View
BIN  db/data.db
Binary file not shown
View
2  models/definition.rb
@@ -46,7 +46,7 @@ class Keyword
belongs_to :definition
def self.user_keywords user_email
- user_keywords = Keyword.all(Keyword.definition.user.email => user_email)
+ user_keywords = Keyword.all(Keyword.definition.user.email => user_email).reject{|el| el.definition.translation.strip == ""}
all = user_keywords.map do |key|
key.JDW + "\t" + key.keyword + "\t" +
key.reading + "\t" + key.definition.definition +
Please sign in to comment.
Something went wrong with that request. Please try again.