Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saved search added and tested #5

Open
wants to merge 10 commits into
base: master
from

fixed syntax errors

  • Loading branch information
mnuyens committed Jun 5, 2012
commit 006e644855786459fe7e68f8b04c67f0408a08d3
@@ -16,7 +16,7 @@
class LogglySession(object):
domain = 'loggly.com'
proxy = 'logs.loggly.com'
ssdict={'order':'order','from':'starttime','rows':'rows','until':'endtime',
ssdict={'order':'order','from':'starttime','rows':'rows','until':'endtime'}
def __init__(self, subdomain, username, password, domain=None, proxy=None,
secure=True):
'''pass in subdomain, username, and password to authorize all API
@@ -113,7 +113,7 @@ def savedsearch(self,q="",**_kwargs):
content=json.loads(cont)
saved=None
for search in content:
if search['name']=q:
if search['name']==q:
saved=search
if saved==None:
raise ValueError("Your account does not have a search of that name,\
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.