Skip to content

Commit 60a9417

Browse files
committed
PYTHONUNBUFFERED
1 parent 7058544 commit 60a9417

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ RUN apt-get update \
2828

2929
RUN pip3 install -U "git+https://github.com/brettmayson/valvepythonsteam#egg=steam[client]"
3030

31+
ENV PYTHONUNBUFFERED=1
32+
3133
ENV ARMA_BINARY=./arma3server_x64
3234
ENV ARMA_CONFIG=main.cfg
3335
ENV ARMA_PARAMS=
@@ -62,6 +64,7 @@ VOLUME /arma3/mark
6264
VOLUME /arma3/kart
6365
VOLUME /arma3/aow
6466
VOLUME /arma3/curator
67+
VOLUME /arma3/tacops
6568

6669
STOPSIGNAL SIGINT
6770

api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ def download_files(client, cdn_client, files, destination):
129129
print(f"Need to download {len(files_to_download)} files...")
130130

131131
for i, file in enumerate(files_to_download):
132-
print(f"Downloading {i+1}/{len(files_to_download)}: {file.filename}")
133132
_download_single_file(file)
134133

135134
print("All files downloaded successfully.")
136135

137136
def _download_single_file(file):
137+
print(f"Downloading {i+1}/{len(files_to_download)}: {file.filename} ({file.size} bytes)")
138138
if file.local and os.path.dirname(file.local) != "":
139139
os.makedirs(os.path.dirname(file.local), exist_ok=True)
140140

@@ -161,7 +161,7 @@ def _download_single_file(file):
161161
if failed:
162162
print(f"Failed to download {file.filename}")
163163
else:
164-
print(f"✓ Downloaded {file.filename} ({file.size} bytes)")
164+
print(f"✓ Downloaded {file.filename}")
165165

166166
if __name__ == "__main__":
167167
import os

0 commit comments

Comments
 (0)