Skip to content
This repository was archived by the owner on Feb 5, 2018. It is now read-only.
This repository was archived by the owner on Feb 5, 2018. It is now read-only.

As an admin of the barcode plugin, I'd like to turn off the encryption #15

Description

@binary1230

Need a config option to turn off the encrypt/decrypt step.

We'll need this for magwest where the badge# is the barcode.

It should be relatively easy, basically have a config option that just turns the following two functions into NOOPs:
https://github.com/rams/barcode/blob/master/barcode/barcode_utils.py#L53
https://github.com/rams/barcode/blob/master/barcode/barcode_utils.py#L96

should just look like:

def generate_barcode_from_badge_num(badge_num, ...snip...)
   if c.USE_BADGE_NUM_AS_BARCODE:
       return badge_num
   # insert rest of function here
   .....snip.....

def get_badge_num_from_barcode(badge_num, ...snip...)
   if c.USE_BADGE_NUM_AS_BARCODE:
       return badge_num
   # insert rest of function here
   .....snip.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions