Commit fbe8f7e4 authored by Landon DeCoito's avatar Landon DeCoito
Browse files

Merge branch 'Landon' into 'master'

parsed a unique event id and placed it into the first dictionary item

See merge request !15
parents e3c5539c 469fdba1
......@@ -87,7 +87,7 @@ def load_data():
entry_title = entry.title.text
entry_content = entry.content.text
uniqueid = entry.id.text
#makes it easy to find as things may be unevenly spaced
entry_content = entry_content.replace("\n\n\n" , "\n")
......@@ -179,6 +179,7 @@ def load_data():
else:
raise eventException("failed to find and account for date element in entry_detailes list")
uniqueid = uniqueid[-9:]
if "Fairfax Campus" in location:
......@@ -233,8 +234,9 @@ def load_data():
print description
print "----------------------------------------------------------------------------"
'''
dictlist.append({"title":entry_title, "dayofweek":day, "dayofmonth":monthday, "month":month, "year":year, "timestart":timestart, "timestop":timestop, "location":location, "description":description})
dictlist.append({"id":uniqueid, "title":entry_title, "dayofweek":day, "dayofmonth":monthday, "month":month, "year":year, "timestart":timestart, "timestop":timestop, "location":location, "description":description})
return dictlist
#everything in the house is fuzzy, stupid dogs were acting like pollinators, if that's how you even spell it
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