mirror of
https://github.com/Findus23/invoices.git
synced 2024-09-19 15:13:47 +02:00
minor improvements
This commit is contained in:
parent
6319c98eaa
commit
f44bc85006
2 changed files with 2 additions and 2 deletions
2
main.py
2
main.py
|
@ -139,7 +139,7 @@ def sign_invoice(id):
|
|||
),
|
||||
"-b", "LOCAL", # use local Bürgerkarte
|
||||
"-a", # automatically position signature
|
||||
"-v", "true" if name == "Rechnung" else "false",
|
||||
"-v", "true" if name == "Rechnung" else "false", # set visibility
|
||||
"-s" # save without asking
|
||||
]
|
||||
print(" ".join(command))
|
||||
|
|
2
utils.py
2
utils.py
|
@ -11,7 +11,7 @@ readline # this does nothing but make sure the import readline is not removed a
|
|||
|
||||
def load_yaml(filename):
|
||||
with open(filename, 'r') as stream:
|
||||
return yaml.load(stream)
|
||||
return yaml.safe_load(stream)
|
||||
|
||||
|
||||
def save_yaml(data, filename):
|
||||
|
|
Loading…
Reference in a new issue