20250222.1740211692
This commit is contained in:
parent
91da352530
commit
e0ab62fb11
2 changed files with 5 additions and 2 deletions
|
@ -499,7 +499,7 @@ def export():
|
||||||
|
|
||||||
for memo in memos:
|
for memo in memos:
|
||||||
create_time = memo["createTime"]
|
create_time = memo["createTime"]
|
||||||
content = shlex.quote(memo["content"].replace(f"#{tag}", "").strip())
|
content = memo["content"].replace(f"#{tag}", "").strip()
|
||||||
|
|
||||||
metadata_id = insert_metadata(conn, make_tz_unixtime(create_time))
|
metadata_id = insert_metadata(conn, make_tz_unixtime(create_time))
|
||||||
|
|
||||||
|
@ -526,6 +526,7 @@ def export():
|
||||||
conn=conn,
|
conn=conn,
|
||||||
metadata_id=metadata_id,
|
metadata_id=metadata_id,
|
||||||
)
|
)
|
||||||
|
content += "\n@attach_photo"
|
||||||
|
|
||||||
closest_entry = fetch_geo(metadata_id, make_tz_unixtime(create_time), conn)
|
closest_entry = fetch_geo(metadata_id, make_tz_unixtime(create_time), conn)
|
||||||
fetch_weather(
|
fetch_weather(
|
||||||
|
@ -533,8 +534,9 @@ def export():
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
content = shlex.quote(content)
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
f'printf "%s %s" "{convert_diary_date(create_time)}" {content} | jrnl {diary_name}',
|
f'printf "%s %b" "{convert_diary_date(create_time)}" {content} | jrnl {diary_name}',
|
||||||
shell=True,
|
shell=True,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True,
|
text=True,
|
||||||
|
|
|
@ -12,6 +12,7 @@ application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoff
|
||||||
application/zip=doublecmd.desktop
|
application/zip=doublecmd.desktop
|
||||||
x-scheme-handler/jetbrains=jetbrains-toolbox.desktop
|
x-scheme-handler/jetbrains=jetbrains-toolbox.desktop
|
||||||
text/html=librewolf.desktop
|
text/html=librewolf.desktop
|
||||||
|
x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop
|
||||||
|
|
||||||
[Added Associations]
|
[Added Associations]
|
||||||
application/xhtml+xml=librewolf.desktop;
|
application/xhtml+xml=librewolf.desktop;
|
||||||
|
|
Loading…
Add table
Reference in a new issue