Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: landakram/database-final
base: c0f2dc7c57
...
head fork: landakram/database-final
compare: dbdf5a0a3d
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
15 data/teams/generate_teams.py
@@ -6,17 +6,20 @@ def team(tid, name, hometown):
f1 = open('mascots.txt')
f2 = open('hometowns.txt')
+f3 = open('schools.txt')
mascots = [line.strip() for line in f1 if line.strip() != ""]
towns = [line.strip() for line in f2 if line.strip() != ""]
+schools = [line.strip() for line in f3 if line.strip() != ""]
f1.close()
f2.close()
+f3.close()
-for m in mascots:
- mascot('%ss' % m, m)
+for i, (m, s) in enumerate(zip(mascots, schools)):
+ mascot('%s College' % s,'%ss'% m)
c = 0
-while len(mascots) < 35:
- mascots.append(mascots[c])
+while len(schools) < 35:
+ schools.append(schools[c])
c += 1
c = 0
@@ -24,8 +27,8 @@ def team(tid, name, hometown):
towns.append(towns[c])
c += 1
-for i, (m, t) in enumerate(zip(mascots, towns)):
- team(i+1, '%ss'%m, t)
+for i, (s, t) in enumerate(zip(schools, towns)):
+ team(i+1, '%s College' % s, t)
View
22 data/teams/schools.txt
@@ -0,0 +1,22 @@
+Thousand Oaks
+Covina
+Pasadena
+Long Beach
+Chino
+Hawthorne
+Watts
+Lomita
+Pomona-Pitzer
+Anaheim
+Torrance
+Compton
+Whittier
+Venice
+Orange
+Riverside
+San Bernadino
+Loyola
+Claremont
+Berkeley
+Hollywood
+Downey
View
115 data/teams/teams.sql
@@ -1,57 +1,58 @@
-INSERT INTO TeamMascot VALUES ("Lions", "Lion");
-INSERT INTO TeamMascot VALUES ("Tigers", "Tiger");
-INSERT INTO TeamMascot VALUES ("Bears", "Bear");
-INSERT INTO TeamMascot VALUES ("Spartans", "Spartan");
-INSERT INTO TeamMascot VALUES ("Warriors", "Warrior");
-INSERT INTO TeamMascot VALUES ("Giants", "Giant");
-INSERT INTO TeamMascot VALUES ("Cardinals", "Cardinal");
-INSERT INTO TeamMascot VALUES ("Anteaters", "Anteater");
-INSERT INTO TeamMascot VALUES ("Sagehens", "Sagehen");
-INSERT INTO TeamMascot VALUES ("Willows", "Willow");
-INSERT INTO TeamMascot VALUES ("Tridents", "Trident");
-INSERT INTO TeamMascot VALUES ("Creatures", "Creature");
-INSERT INTO TeamMascot VALUES ("Poets", "Poet");
-INSERT INTO TeamMascot VALUES ("Aardvarks", "Aardvark");
-INSERT INTO TeamMascot VALUES ("Mascots", "Mascot");
-INSERT INTO TeamMascot VALUES ("Doors", "Door");
-INSERT INTO TeamMascot VALUES ("Turnips", "Turnip");
-INSERT INTO TeamMascot VALUES ("Trumpets", "Trumpet");
-INSERT INTO TeamMascot VALUES ("Snakes", "Snake");
-INSERT INTO TeamMascot VALUES ("Griffins", "Griffin");
-INSERT INTO TeamMascot VALUES ("Hounds", "Hound");
-INSERT INTO TeamMascot VALUES ("Dragons", "Dragon");
-INSERT INTO Team VALUES (1, "Lions", "San Francisco");
-INSERT INTO Team VALUES (2, "Tigers", "Claremont");
-INSERT INTO Team VALUES (3, "Bears", "Chicago");
-INSERT INTO Team VALUES (4, "Spartans", "New York");
-INSERT INTO Team VALUES (5, "Warriors", "Tuscaloosa");
-INSERT INTO Team VALUES (6, "Giants", "Milwaukee");
-INSERT INTO Team VALUES (7, "Cardinals", "Oakland");
-INSERT INTO Team VALUES (8, "Anteaters", "Los Angeles");
-INSERT INTO Team VALUES (9, "Sagehens", "Boston");
-INSERT INTO Team VALUES (10, "Willows", "Seattle");
-INSERT INTO Team VALUES (11, "Tridents", "Portland");
-INSERT INTO Team VALUES (12, "Creatures", "Richmond");
-INSERT INTO Team VALUES (13, "Poets", "Dallas");
-INSERT INTO Team VALUES (14, "Aardvarks", "Houston");
-INSERT INTO Team VALUES (15, "Mascots", "Denver");
-INSERT INTO Team VALUES (16, "Doors", "Compton");
-INSERT INTO Team VALUES (17, "Turnips", "San Francisco");
-INSERT INTO Team VALUES (18, "Trumpets", "Claremont");
-INSERT INTO Team VALUES (19, "Snakes", "Chicago");
-INSERT INTO Team VALUES (20, "Griffins", "New York");
-INSERT INTO Team VALUES (21, "Hounds", "Tuscaloosa");
-INSERT INTO Team VALUES (22, "Dragons", "Milwaukee");
-INSERT INTO Team VALUES (23, "Lions", "Oakland");
-INSERT INTO Team VALUES (24, "Tigers", "Los Angeles");
-INSERT INTO Team VALUES (25, "Bears", "Boston");
-INSERT INTO Team VALUES (26, "Spartans", "Seattle");
-INSERT INTO Team VALUES (27, "Warriors", "Portland");
-INSERT INTO Team VALUES (28, "Giants", "Richmond");
-INSERT INTO Team VALUES (29, "Cardinals", "Dallas");
-INSERT INTO Team VALUES (30, "Anteaters", "Houston");
-INSERT INTO Team VALUES (31, "Sagehens", "Denver");
-INSERT INTO Team VALUES (32, "Willows", "Compton");
-INSERT INTO Team VALUES (33, "Tridents", "San Francisco");
-INSERT INTO Team VALUES (34, "Creatures", "Claremont");
-INSERT INTO Team VALUES (35, "Poets", "Chicago");
+INSERT INTO TeamMascot VALUES ("Thousand Oaks College", "Lions");
+INSERT INTO TeamMascot VALUES ("Covina College", "Tigers");
+INSERT INTO TeamMascot VALUES ("Pasadena College", "Bears");
+INSERT INTO TeamMascot VALUES ("Long Beach College", "Spartans");
+INSERT INTO TeamMascot VALUES ("Chino College", "Warriors");
+INSERT INTO TeamMascot VALUES ("Hawthorne College", "Giants");
+INSERT INTO TeamMascot VALUES ("Watts College", "Cardinals");
+INSERT INTO TeamMascot VALUES ("Lomita College", "Anteaters");
+INSERT INTO TeamMascot VALUES ("Pomona-Pitzer College", "Sagehens");
+INSERT INTO TeamMascot VALUES ("Anaheim College", "Willows");
+INSERT INTO TeamMascot VALUES ("Torrance College", "Tridents");
+INSERT INTO TeamMascot VALUES ("Compton College", "Creatures");
+INSERT INTO TeamMascot VALUES ("Whittier College", "Poets");
+INSERT INTO TeamMascot VALUES ("Venice College", "Aardvarks");
+INSERT INTO TeamMascot VALUES ("Orange College", "Mascots");
+INSERT INTO TeamMascot VALUES ("Riverside College", "Doors");
+INSERT INTO TeamMascot VALUES ("San Bernadino College", "Turnips");
+INSERT INTO TeamMascot VALUES ("Loyola College", "Trumpets");
+INSERT INTO TeamMascot VALUES ("Claremont College", "Snakes");
+INSERT INTO TeamMascot VALUES ("Berkeley College", "Griffins");
+INSERT INTO TeamMascot VALUES ("Hollywood College", "Hounds");
+INSERT INTO TeamMascot VALUES ("Downey College", "Dragons");
+INSERT INTO Team VALUES (1, "Thousand Oaks College", "San Francisco");
+INSERT INTO Team VALUES (2, "Covina College", "Claremont");
+INSERT INTO Team VALUES (3, "Pasadena College", "Chicago");
+INSERT INTO Team VALUES (4, "Long Beach College", "New York");
+INSERT INTO Team VALUES (5, "Chino College", "Tuscaloosa");
+INSERT INTO Team VALUES (6, "Hawthorne College", "Milwaukee");
+INSERT INTO Team VALUES (7, "Watts College", "Oakland");
+INSERT INTO Team VALUES (8, "Lomita College", "Los Angeles");
+INSERT INTO Team VALUES (9, "Pomona-Pitzer College", "Boston");
+INSERT INTO Team VALUES (10, "Anaheim College", "Seattle");
+INSERT INTO Team VALUES (11, "Torrance College", "Portland");
+INSERT INTO Team VALUES (12, "Compton College", "Richmond");
+INSERT INTO Team VALUES (13, "Whittier College", "Dallas");
+INSERT INTO Team VALUES (14, "Venice College", "Houston");
+INSERT INTO Team VALUES (15, "Orange College", "Denver");
+INSERT INTO Team VALUES (16, "Riverside College", "Compton");
+INSERT INTO Team VALUES (17, "San Bernadino College", "San Francisco");
+INSERT INTO Team VALUES (18, "Loyola College", "Claremont");
+INSERT INTO Team VALUES (19, "Claremont College", "Chicago");
+INSERT INTO Team VALUES (20, "Berkeley College", "New York");
+INSERT INTO Team VALUES (21, "Hollywood College", "Tuscaloosa");
+INSERT INTO Team VALUES (22, "Downey College", "Milwaukee");
+INSERT INTO Team VALUES (23, "Thousand Oaks College", "Oakland");
+INSERT INTO Team VALUES (24, "Covina College", "Los Angeles");
+INSERT INTO Team VALUES (25, "Pasadena College", "Boston");
+INSERT INTO Team VALUES (26, "Long Beach College", "Seattle");
+INSERT INTO Team VALUES (27, "Chino College", "Portland");
+INSERT INTO Team VALUES (28, "Hawthorne College", "Richmond");
+INSERT INTO Team VALUES (29, "Watts College", "Dallas");
+INSERT INTO Team VALUES (30, "Lomita College", "Houston");
+INSERT INTO Team VALUES (31, "Pomona-Pitzer College", "Denver");
+INSERT INTO Team VALUES (32, "Anaheim College", "Compton");
+INSERT INTO Team VALUES (33, "Torrance College", "San Francisco");
+INSERT INTO Team VALUES (34, "Compton College", "Claremont");
+INSERT INTO Team VALUES (35, "Whittier College", "Chicago");
+

No commit comments for this range

Something went wrong with that request. Please try again.