mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Merged PR
This commit is contained in:
parent
95d399d5c3
commit
28d87861cc
3 changed files with 11 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
<key>Tags</key>
|
||||
<array>
|
||||
<string>work</string>
|
||||
<string>play</string>
|
||||
<string>PLaY</string>
|
||||
</array>
|
||||
<key>Time Zone</key>
|
||||
<string>America/Los_Angeles</string>
|
||||
|
|
|
@ -69,3 +69,12 @@ Feature: Zapped bugs should stay dead.
|
|||
2014-04-24 09:00 Ran 6.2 miles today in 1:02:03.
|
||||
| I'm feeling sore because I forgot to stretch.
|
||||
"""
|
||||
|
||||
Scenario: DayOne tag searching should work with tags containing a mixture of upper and lower case.
|
||||
# https://github.com/maebert/jrnl/issues/354
|
||||
Given we use the config "dayone.yaml"
|
||||
When we run "jrnl @plAy"
|
||||
Then the output should contain
|
||||
"""
|
||||
2013-05-17 11:39 This entry has tags!
|
||||
"""
|
||||
|
|
|
@ -50,7 +50,7 @@ class DayOne(Journal.Journal):
|
|||
date = date + timezone.utcoffset(date, is_dst=False)
|
||||
entry = Entry.Entry(self, date, text=dict_entry['Entry Text'], starred=dict_entry["Starred"])
|
||||
entry.uuid = dict_entry["UUID"]
|
||||
entry._tags = [self.config['tagsymbols'][0] + tag for tag in dict_entry.get("Tags", [])]
|
||||
entry._tags = [self.config['tagsymbols'][0] + tag.lower() for tag in dict_entry.get("Tags", [])]
|
||||
|
||||
self.entries.append(entry)
|
||||
self.sort()
|
||||
|
|
Loading…
Add table
Reference in a new issue