diff options
author | zsloan | 2018-04-16 10:46:56 -0500 |
---|---|---|
committer | GitHub | 2018-04-16 10:46:56 -0500 |
commit | a58a4c3b8ee4f7256a18c99542ff6a9f355c0a2e (patch) | |
tree | 1e7677fa1fa210a2a957855578cd3ac3a47b720b /wqflask/base/anon_collection.py | |
parent | 270f86c41f7c90cc4ca51bca0aec789a09a36a0e (diff) | |
parent | ebbc8c67c13b44df98ea3c2b355e86f77572543b (diff) | |
download | genenetwork2-a58a4c3b8ee4f7256a18c99542ff6a9f355c0a2e.tar.gz |
Merge pull request #317 from pjotrp/testing
Testing
Diffstat (limited to 'wqflask/base/anon_collection.py')
-rw-r--r-- | wqflask/base/anon_collection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/base/anon_collection.py b/wqflask/base/anon_collection.py index 8ee73296..dd1aa27f 100644 --- a/wqflask/base/anon_collection.py +++ b/wqflask/base/anon_collection.py @@ -1,6 +1,6 @@ class AnonCollection(TraitCollection):
- def __init__(self, anon_id)
+ def __init__(self, anon_id):
self.anon_id = anon_id
self.collection_members = Redis.smembers(self.anon_id)
print("self.collection_members is:", self.collection_members)
@@ -12,6 +12,7 @@ class AnonCollection(TraitCollection): print("traits_to_remove:", traits_to_remove)
for trait in traits_to_remove:
Redis.srem(self.anon_id, trait)
+
members_now = self.collection_members - traits_to_remove
print("members_now:", members_now)
print("Went from {} to {} members in set.".format(len(self.collection_members), len(members_now)))
|