Add Installer Script for Inno Setup

This commit is contained in:
Sebastian Serfling
2025-05-26 11:03:47 +02:00
parent 4f49e34ca9
commit eab1b5bf2a
4 changed files with 63 additions and 103 deletions
+4 -1
View File
@@ -154,7 +154,10 @@ os.makedirs(label_storage_path, exist_ok=True)
# PDF von der API herunterladen
if url:
response = requests.get(url)
body = {
'tkn':'ov;xZ~ksDXf;dV-ci^LJS^N9Pi;Z,~A.QY$5uBc74a9RMjTQ5trhbQx#%hit:gTw'
}
response = requests.post(url, data=body)
if response.status_code == 200:
file_name = f'{original_storage_path}/original_{timestamp}.pdf'
with open(file_name, 'wb') as file: