diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 9cad447..de58a16 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -39,3 +39,5 @@ jobs: pytest env: DATABASE_URL: ${{ secrets.DATABASE_URL }} + FACTORIO_USERNAME: ${{ secrets.FACTORIO_USERNAME }} + FACTORIO_TOKEN: ${{ secrets.FACTORIO_TOKEN }} diff --git a/protocols/MasterServer.py b/protocols/MasterServer.py index aeb04de..dba33bc 100644 --- a/protocols/MasterServer.py +++ b/protocols/MasterServer.py @@ -90,8 +90,9 @@ def _bulk_write(self, updates: list): chunk_size = -(-len(updates) // max_workers) # Split the updates into chunks for each worker - update_chunks = [updates[i:i + chunk_size] - for i in range(0, len(updates), chunk_size)] + update_chunks = [ + updates[i:i + chunk_size] + for i in range(0, len(updates), chunk_size)] # Initialize a progress bar for tracking the progress of the bulk write pbar = tqdm(total=len(updates), desc=f"[{self.key}] Bulk Write")