madcowfred / padherder-sync Goto Github PK
View Code? Open in Web Editor NEWSimple script to sync JSON box data via the PADherder API
License: BSD 3-Clause "New" or "Revised" License
Simple script to sync JSON box data via the PADherder API
License: BSD 3-Clause "New" or "Revised" License
Opening this ticket as a continuation of another ticket, but in the more appropriate repository:
madcowfred/padherder-issues#244
To summarize, removing monsters is tricky because it causes cascading removal of any teams of which that monster is a leader and leaves holes on any teams which contain that monster as a sub, so it is not currently supported.
I propose that a good compromise would be to remove a monster if and only if it is not a member (leader or sub) of any team the user has created. This will cover the vast majority of cases (monsters being consumed during Power-up Fusion as XP or skill level fodder, or trivial monsters that have been sold for coins). For any monsters that are on at least one team the user has created, it makes sense for them to need to use the PADHerder website to remove them manually, where they will receive appropriate warnings about any potential problems the removal may create for their teams.
I've implemented this logic and it appears to work, returning the expected 204 No Content
HTTP status for the DELETE request, but I am still seeing the monster in my account. Any idea as to why the monster isn't actually being removed?
Hi,
My first time using padherder sync only synced 13 monsters from my monster box. I currently have 82 of 105 within my box. Below is some of the json data I gathered and saved within a text file. None of those monsters were transferred into my padherder
{"cuid":844,"exp":0,"lv":1,"slv":1,"mcnt":0,"no":167,"plus":[0,0,0,0]},{"cuid":856,"exp":0,"lv":1,"slv":1,"mcnt":2,"no":306,"plus":[0,0,0,0]},{"cuid":858,"exp":0,"lv":1,"slv":1,"mcnt":2,"no":601,"plus":[0,0,0,0]},{"cuid":859,"exp":0,"lv":1,"slv":1,"mcnt":2,"no":306,"plus":[0,0,0,0]},{"cuid":861,"exp":0,"lv":1,"slv":1,"mcnt":2,"no":601,"plus":[0,0,0,0]},{"cuid":863,"exp":0,"lv":1,"slv":1,"mcnt":0,"no":601,"plus":[0,0,0,0]},{"cuid":864,"exp":0,"lv":1,"slv":1,"mcnt":2,"no":601,"plus":[0,0,0,0]}
Produces the output:
Retrieving monster data from PADherder API...
Traceback (most recent call last):
File "padherder_sync.py", line 324, in <module>
File "padherder_sync.py", line 123, in main
File "requests\sessions.pyo", line 395, in get
File "requests\sessions.pyo", line 383, in request
File "requests\sessions.pyo", line 486, in send
File "requests\adapters.pyo", line 385, in send
requests.exceptions.SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509
certificate routines:X509_load_cert_crl_file:system lib
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.