Commit 3ed2d943 authored by Aaron R Poulter-martinez's avatar Aaron R Poulter-martinez
Browse files

k actually fixed it this time

parent 55430601
...@@ -19,7 +19,7 @@ def load_data(): ...@@ -19,7 +19,7 @@ def load_data():
"Saturday" : 6, "Saturday" : 6,
} }
notProvide = "Not provided" notProvide = "Not Provided"
counter = 0 counter = 0
def cleanup(str): #this function cleans up some of the useless html leftovers to characters we can actually use def cleanup(str): #this function cleans up some of the useless html leftovers to characters we can actually use
...@@ -135,7 +135,6 @@ def load_data(): ...@@ -135,7 +135,6 @@ def load_data():
#See (B) #See (B)
if len(entry_detailes) == 1: if len(entry_detailes) == 1:
location = notProvide location = notProvide
entry.location = "no location"
date = entry_detailes[0] date = entry_detailes[0]
description = notProvide description = notProvide
#see (C) #see (C)
...@@ -182,8 +181,9 @@ def load_data(): ...@@ -182,8 +181,9 @@ def load_data():
uniqueid = uniqueid[-9:] uniqueid = uniqueid[-9:]
location = location[:-1] if location != notProvide:
location += ", " location = location[:-1]
location += ", "
if "Fairfax Campus" in location: if "Fairfax Campus" in location:
location = location.split(", Fairfax Campus, ") location = location.split(", Fairfax Campus, ")
campus = "Fairfax" campus = "Fairfax"
...@@ -242,3 +242,4 @@ def load_data(): ...@@ -242,3 +242,4 @@ def load_data():
#everything in the house is fuzzy, stupid dogs were acting like pollinators, if that's how you even spell it #everything in the house is fuzzy, stupid dogs were acting like pollinators, if that's how you even spell it
print load_data()
\ No newline at end of file
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