feat: upload map image assets to the wiki#405
Merged
Conversation
hassayag
reviewed
Jul 15, 2026
Comment on lines
+241
to
+244
| page = self.site.pages[page_title] | ||
| if page.exists and not self.force_asset_upload: | ||
| logger.trace(f'File "{page_title}" already exists on wiki, skipping.') | ||
| continue |
Member
There was a problem hiding this comment.
Files need to be handled automatically, can't rely on us checking a box. You mention that file upload always creates a new revision, but I had a play on the wiki itself and it blocks it. Have you tested that via the python client?
Collaborator
Author
There was a problem hiding this comment.
I couldn't test the live API earlier due to Codespace/Cloudflare blocks, which is why I left the manual guard in initially.
I've now removed the --force-asset-upload flag and the page.exists check entirely, and retested the updated code.
LVL1024
force-pushed
the
feature/upload-map-assets
branch
4 times, most recently
from
July 15, 2026 21:32
8fa86f3 to
32f95a0
Compare
Adds IMAGE_FILE_MAP to pages.py with the three map plot images (golden statues, crate locations, shop locations) and a new _upload_assets() method in upload.py that uploads them to the File: namespace. Skips files that already exist on the wiki to avoid creating unnecessary file revisions.
LVL1024
force-pushed
the
feature/upload-map-assets
branch
from
July 15, 2026 21:47
32f95a0 to
8c712d8
Compare
hassayag
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uploads the three map plot images (golden statues, crate locations, shop locations) generated by the map parser to the wiki File namespace.
Adds a
--force-asset-uploadflag that can be toggled via workflow dispatch to re-upload existing images when map data changes.Parsed data in deadlock-data PR - Reopen deadbot PR or run deploy workflow for this branch here to reparse the data