20250121.1737480707
This commit is contained in:
parent
412cec3135
commit
8081afdec9
2 changed files with 9 additions and 8 deletions
|
@ -412,14 +412,15 @@ def export():
|
|||
)
|
||||
|
||||
try:
|
||||
result = subprocess.run(
|
||||
subprocess.run(
|
||||
f'printf "%s %s" "{convert_diary_date(create_time)}" {content} | jrnl {diary_name}',
|
||||
shell=True,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=True,
|
||||
)
|
||||
print(result.stdout)
|
||||
os.system("clear")
|
||||
print("Record has been inserted.")
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"Error writing to journal: {e.stderr}")
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue