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

feat: support for emptyVal in template.json #91

Merged
merged 3 commits into from
Oct 12, 2022
Merged

Conversation

Udayraj123
Copy link
Owner

@Udayraj123 Udayraj123 commented Oct 11, 2022

Closes #61

Changes

  • Added a support for emptyVal in template.json at global level as well qBlock level
  • Added a sample image submitted by @ibrahimkilic with new template.json type
  • Some refactoring around formatted strings

Additional changes

fix: add PAGE_TYPE_FOR_THRESHOLD to config; which picks GLOBAL_PAGE_THRESHOLD_WHITE/BLACK from constants

fix: populate empty responses using a set; compress image
src/constants.py Outdated
@@ -14,8 +14,7 @@
CURRENT_MODULE_DIR = os.path.dirname(__file__)
CONFIG_DEFAULTS_PATH = os.path.join(CURRENT_MODULE_DIR, "defaults/config.json")
SCHEMA_DEFAULTS_PATH = os.path.join(CURRENT_MODULE_DIR, "defaults/schema.json")
TEMPLATE_DEFAULTS_PATH = os.path.join(
CURRENT_MODULE_DIR, "defaults/template.json")
TEMPLATE_DEFAULTS_PATH = os.path.join(CURRENT_MODULE_DIR, "defaults/template.json")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would os.path.join(CURRENT_MODULE_DIR, "defaults","template.json") make more sense, eradicating the OS dependency? Windows machines would expect \ if I'm correct.

Copy link
Collaborator

@deepakgouda deepakgouda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added minor comment

@Udayraj123 Udayraj123 merged commit c1e792a into master Oct 12, 2022
@Udayraj123 Udayraj123 deleted the feature/61 branch October 12, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] i need 0('N')-1('Y') with one bubble... is it possible?
2 participants