aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-03-22 06:09:39 +0300
committerMuriithi Frederick Muriuki2018-03-22 06:09:39 +0300
commit4c2ce5580a0891d89fc35c48da06d25fb4c8df76 (patch)
treee789b29cac618c3a471a42b7670cd830b50d55c9 /wqflask/base
parenta20004e25d0143a14763180359e8266e31f9766f (diff)
downloadgenenetwork2-4c2ce5580a0891d89fc35c48da06d25fb4c8df76.tar.gz
Fix 'def' statement
* End the 'def' statement with a colon (:) * Add an empty line between lines at different indentation levels for clarity.
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/anon_collection.py3
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)))