Skip to content

Commit

Permalink
Fix file downloading
Browse files Browse the repository at this point in the history
Co-Authored-By: Josselin R. <[email protected]>
  • Loading branch information
bain3 and JsonLinesCode committed Apr 1, 2021
1 parent 023daed commit a8a0685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pronotepy/dataClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def __init__(self, client, parsed_json):
for key in prepared_json:
self.__setattr__(key, prepared_json[key])
self._client = client
padd = Padding.pad(json.dumps({'N': self.id, 'Actif': True}).replace(' ', '').encode(), 16)
padd = Padding.pad(json.dumps({'N': self.id, 'G': 1}).replace(' ', '').encode(), 16)
magic_stuff = client.communication.encryption.aes_encrypt(padd).hex()
self.url = client.communication.root_site \
+ '/FichiersExternes/' \
Expand Down

0 comments on commit a8a0685

Please sign in to comment.