Skip to content

Commit

Permalink
name agnostic (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: dfusion-dev <[email protected]>
  • Loading branch information
Patrickdlg and dfusion-dev authored Dec 14, 2024
1 parent f189951 commit 534df93
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions psl_proof/proof.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ def generate(self) -> ProofResponse:

for input_filename in os.listdir(self.config['input_dir']):
input_file = os.path.join(self.config['input_dir'], input_filename)
if os.path.splitext(input_file)[1].lower() == '.json':
with open(input_file, 'r') as f:
input_data = json.load(f)
if input_filename == 'chats.json':
source_data = get_source_data(
input_data
)
continue
with open(input_file, 'r') as f:
input_data = json.load(f)
source_data = get_source_data(
input_data
)
break

salt = self.config['salt']
source_user_hash_64 = salted_data(
Expand Down

0 comments on commit 534df93

Please sign in to comment.