Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Dec 11, 2024
1 parent 6d10787 commit 392113e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addressbook/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def get_personale_data(personale_id, field_to_retrieve='matricola'):
if personale_id[len(personale_id) - 2:] == "==":
if field_to_retrieve == 'matricola' and personale_id[len(personale_id) - 2:] == "==":
return decrypt(personale_id)

personale_model = apps.get_model("addressbook.Personale")
Expand Down

0 comments on commit 392113e

Please sign in to comment.