1
0
Fork 0
mirror of https://github.com/Findus23/invoices.git synced 2024-09-19 15:13:47 +02:00

minor improvements

This commit is contained in:
Lukas Winkler 2019-10-09 20:16:08 +02:00
parent 6319c98eaa
commit f44bc85006
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ def sign_invoice(id):
), ),
"-b", "LOCAL", # use local Bürgerkarte "-b", "LOCAL", # use local Bürgerkarte
"-a", # automatically position signature "-a", # automatically position signature
"-v", "true" if name == "Rechnung" else "false", "-v", "true" if name == "Rechnung" else "false", # set visibility
"-s" # save without asking "-s" # save without asking
] ]
print(" ".join(command)) print(" ".join(command))

View file

@ -11,7 +11,7 @@ readline # this does nothing but make sure the import readline is not removed a
def load_yaml(filename): def load_yaml(filename):
with open(filename, 'r') as stream: with open(filename, 'r') as stream:
return yaml.load(stream) return yaml.safe_load(stream)
def save_yaml(data, filename): def save_yaml(data, filename):