buried-in-code / dex-starr Goto Github PK
View Code? Open in Web Editor NEWDex-Starr helps sort and organize your comic collection by using the information stored in ComicInfo files
License: GNU General Public License v3.0
Dex-Starr helps sort and organize your comic collection by using the information stored in ComicInfo files
License: GNU General Public License v3.0
Currently to test the script a config.ini
file is required.
Need to investigate how to load one for Github Actions to be able to load
Currently automated tests fail as the responses in the test cache are removed due to expiry set on cache
After taking a closer look at how I implemented the tests rather than loading a test config, they try and load it how Comic-Organizer would for any user.
Really, I'd say this is actually a bug that was exposed.
By hard-coding a config file location without any type of error handling you're making this section of the code fairly brittle. A better solution would be to gracefully exit if the file isn't found, or to create an empty file and then error out if any info is missing when needed. Really all those variables (COMICVINE_API_KEY, LEAGUE_API_KEY, etc) should be using default values (None, "", etc) if for some reason their keys are not in config file.
There are a lot of different ways to implement this depending on your needs, for most of my simple projects I tend to use something like this:
https://github.com/bpepple/metron-tagger/blob/master/metrontagger/taggerlib/settings.py
Anyway, something to think about.
Originally posted by @bpepple in #16 (comment)
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.