20250222.1740211692

This commit is contained in:
fz0x1 2025-02-22 09:08:12 +01:00
parent 91da352530
commit e0ab62fb11
2 changed files with 5 additions and 2 deletions

View file

@ -499,7 +499,7 @@ def export():
for memo in memos:
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))
@ -526,6 +526,7 @@ def export():
conn=conn,
metadata_id=metadata_id,
)
content += "\n@attach_photo"
closest_entry = fetch_geo(metadata_id, make_tz_unixtime(create_time), conn)
fetch_weather(
@ -533,8 +534,9 @@ def export():
)
try:
content = shlex.quote(content)
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,
capture_output=True,
text=True,

View file

@ -12,6 +12,7 @@ application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoff
application/zip=doublecmd.desktop
x-scheme-handler/jetbrains=jetbrains-toolbox.desktop
text/html=librewolf.desktop
x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop
[Added Associations]
application/xhtml+xml=librewolf.desktop;