Skip to content

Commit dad1054

Browse files
author
Brett Hazen
committed
Don't enable search until YZ is integrated
1 parent cfef463 commit dad1054

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def ListTweets(bucket):
1515
allkeys = bucket.get_keys()
1616
bucket.allow_mult = True
1717
count = 0
18+
if allkeys == None:
19+
print "No Tweets."
20+
return
1821
for key in allkeys:
1922
count = count + 1
2023
obj = bucket.get(key)
@@ -63,8 +66,8 @@ def LoadTweets(protocol, bucket, quantity, term):
6366
results = api.GetSearch(term, count=perpage, max_id=earliest_id)
6467

6568
# Make sure search is enabled before storing results
66-
if protocol != "pbc":
67-
bucket.enable_search()
69+
# if protocol != "pbc":
70+
# bucket.enable_search()
6871
bucket.allow_mult = True
6972
for status in results:
7073
if status.id < earliest_id:

0 commit comments

Comments
 (0)