Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update function broken #7

Open
BroManDudeGuyPhD opened this issue Oct 25, 2024 · 1 comment
Open

Update function broken #7

BroManDudeGuyPhD opened this issue Oct 25, 2024 · 1 comment

Comments

@BroManDudeGuyPhD
Copy link
Owner

The fan wiki I was using to grab the codes has updated their website, so I need to fix the update function accordingly

For now, do not use the update function because it will break the json file. If your file does get corrupted you can always grab the democracy.json file from the repo

My plan to resolve this:

  1. Fix the update function
  2. Add error checking & a backup of previous version of the democracy.json file
@BroManDudeGuyPhD
Copy link
Owner Author

BroManDudeGuyPhD commented Nov 3, 2024

I figured out the cause, I inadvertently updated my Powershell version, which broke my HTML parsing since Powershell 7 has no built in parser: https://stackoverflow.com/questions/60655737/how-to-parse-html-table-with-powershell-core-7
I built this on Powershell 5 and must have updated since writing it

This fix should be easy, and in the meantime the majority of stratagem codes still works with the existing democracy.json file, just none of the newest stratagems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant