1. 27 Jul, 2024 4 commits
  2. 26 Jul, 2024 9 commits
  3. 25 Jul, 2024 3 commits
  4. 24 Jul, 2024 4 commits
  5. 23 Jul, 2024 3 commits
  6. 22 Jul, 2024 4 commits
  7. 21 Jul, 2024 2 commits
  8. 20 Jul, 2024 1 commit
  9. 19 Jul, 2024 3 commits
  10. 18 Jul, 2024 1 commit
  11. 17 Jul, 2024 5 commits
  12. 16 Jul, 2024 1 commit
    • Thomas Ward's avatar
      Make default hash lib configurable without code changes via CLI argument (#3947) · c5a48b15
      Thomas Ward authored
      * cli_args: Add --duplicate-check-hash-function.
      
      * server.py: compare_image_hash configurable hash function
      
      Uses an argument added in cli_args to specify the type of hashing to default to for duplicate hash checking.  Uses an `eval()` to identify the specific hashlib class to utilize, but ultimately safely operates because we have specific options and only those options/choices in the arg parser.  So we don't have any unsafe input there.
      
      * Add hasher() to node_helpers
      
      * hashlib selection moved to node_helpers
      
      * default-hashing-function instead of dupe checking hasher
      
      This makes a default-hashing-function option instead of previous selected option.
      
      * Use args.default_hashing_function
      
      * Use safer handling for node_helpers.hasher()
      
      Uses a safer handling method than `eval` to evaluate default hashing function.
      
      * Stray parentheses are evil.
      
      * Indentation fix.
      
      Somehow when I hit save I didn't notice I missed a space to make indentation work proper.  Oops!
      c5a48b15