diff options
author | zsloan | 2020-03-25 13:53:20 -0500 |
---|---|---|
committer | GN2 | 2020-03-25 13:56:10 -0500 |
commit | 3dc5931e6729631affe23cfa736c98836e5e171b (patch) | |
tree | aa936b2028340a901238e0fc34b949d0fd51715f | |
parent | 49d1af523c520a80f48f2e8d021877f6fb0f12a3 (diff) | |
download | genenetwork2-3dc5931e6729631affe23cfa736c98836e5e171b.tar.gz |
Added fix for issue when creating collections (related to hmac import change)
-rw-r--r-- | wqflask/wqflask/collect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py index 2a94e63d..74eb869f 100644 --- a/wqflask/wqflask/collect.py +++ b/wqflask/wqflask/collect.py @@ -43,10 +43,10 @@ def process_traits(unprocessed_traits): unprocessed_traits = unprocessed_traits.split(",") traits = set() for trait in unprocessed_traits: - data, _separator, hmac = trait.rpartition(':') + data, _separator, the_hmac = trait.rpartition(':') data = data.strip() if g.user_session.logged_in: - assert hmac == hmac.data_hmac(data), "Data tampering?" + assert the_hmac == hmac.hmac_creation(data), "Data tampering?" traits.add(str(data)) return traits |