fix materialistic glob
This commit is contained in:
parent
d6a5795be5
commit
162455c38e
1 changed files with 2 additions and 2 deletions
|
@ -41,11 +41,11 @@ class Saved(NamedTuple):
|
|||
|
||||
|
||||
def _last_export():
|
||||
return max(get_files(paths.materialistic.export_path, glob='*.db'))
|
||||
return max(get_files(paths.materialistic.export_path, glob='**/*.db'))
|
||||
|
||||
|
||||
def raw() -> Iterator[Row]:
|
||||
db = dataset.connect('sqlite:///' + str(_last_export))
|
||||
db = dataset.connect('sqlite:///' + str(_last_export()))
|
||||
st = db['saved']
|
||||
# TODO wonder if it's 'save time'?
|
||||
yield from st.all(order_by='time')
|
||||
|
|
Loading…
Add table
Reference in a new issue