Commit c4ee1e7c authored by Landon DeCoito's avatar Landon DeCoito

fixed placement of a line and a typo in a comment

parent 93039069
...@@ -34,9 +34,9 @@ def load_getconn_data(): ...@@ -34,9 +34,9 @@ def load_getconn_data():
feed = feedparser.parse(feedtext) feed = feedparser.parse(feedtext)
dictlist = [] dictlist = []
error = []
for entry in feed.entries: for entry in feed.entries:
error = []
# this collects the attributes which are always there # this collects the attributes which are always there
# also creates the Soup and sets up for the rest of the parsing # also creates the Soup and sets up for the rest of the parsing
try: try:
...@@ -61,7 +61,7 @@ def load_getconn_data(): ...@@ -61,7 +61,7 @@ def load_getconn_data():
error.append(str(e)) error.append(str(e))
# this handles events which start and end on the same day # this handles events which start and end on the same day
# if we've found an error, there's not point in continuing # if we've found an error, there's no point in continuing
if (datetime.count("(") == 1) and (error == []): if (datetime.count("(") == 1) and (error == []):
# parses out date info # parses out date info
try: try:
...@@ -140,7 +140,6 @@ def load_getconn_data(): ...@@ -140,7 +140,6 @@ def load_getconn_data():
else: else:
dictlist.append("error": "issue in initialization of event.\ dictlist.append("error": "issue in initialization of event.\
check lines 40-56 in getconnectedscript.py") check lines 40-56 in getconnectedscript.py")
return dictlist return dictlist
# Every event has: # Every event has:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment