Skip to content

Commit

Permalink
Merge pull request #553 from GeraldJansen/fix-search
Browse files Browse the repository at this point in the history
Fix search function (#551)
  • Loading branch information
ederag authored Feb 12, 2020
2 parents 21568b0 + b04a2ff commit 3a6377a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hamster/storage/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def __check_index(self, start_date, end_date):

insert = """INSERT INTO fact_index (id, name, category, description, tag)
VALUES (?, ?, ?, ?, ?)"""
params = [(fact.id, fact.name, fact.category, fact.description, " ".join(fact.tags)) for fact in facts]
params = [(fact.id, fact.activity, fact.category, fact.description, " ".join(fact.tags)) for fact in facts]

self.executemany(insert, params)

Expand Down

0 comments on commit 3a6377a

Please sign in to comment.