You are browsing as a guest. Sign up (or log in) to start making projects!

9h 37m 16s logged

Mega Lock-In

The 9 hours was logged in span of the last week. Didn`t get to devlog due to internet outage here in Sri Lanka.

Bugs Fixed

in core.py

  • _hex_to_rgb 3-char hex crash:#000, #FFF, #F00 etc. caused invalid literal for int() with base 16: ''. Added expansion of 3-char to 6-char before parsing
    .- logo() crash: 'QR' object has no attribute '_version_size'``logo() tried to compute size_px = int(self._version_size * ratio) but _version_size doesn’t exist on the QR object at call time (the matrix hasn’t been built yet). Fixed to compute size_px lazily inside _get_logo_info() from module_count × box_size × ratio.
    -logo(border=True) crash: invalid literal for int() with base 16: 'Tr'The _logo_border attribute stores a bool, but was passed directly as border_color to embed_image() which called _hex_to_rgb(True)_hex_to_rgb("True") → crash. Fixed to pass "#000000" if self._logo_border else None.
  • image_ops.py + animation.py _hex_to_rgb None guard
    Added if not c: return (0, 0, 0) guard so passing None as a color never crashes.
  • The _color() validator didn’t strip surrounding shell-added quotes from color strings like “#FF0000”, causing # to be split off the hex digits. Fixed to strip " and ' before processing.

Changes

  • Corrected Micro QR capacity table (all 8 version/ECC combos with accurate numeric/alpha/byte limits)
  • Fixed logo() parameter docs (border is bool, not int)- Fixed double ```bash` in installation section
  • Corrected SMS encoding protocol note (sms: not smsto:)

Docs

  • Added a more detailed info about MicroQR codes to README.md and DOCUMENTATION.md- Made a landing site with help of Claude.
0
2

Comments 0

No comments yet. Be the first!