scraping-rtn 0.0.1__tar.gz → 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of scraping-rtn might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scraping_rtn
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: package to scrape gymnastics data from Road To Nationals
5
5
  Author-email: Claire Harmon <ceharmon220@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/cgn-charmon/scraping_rtn
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scraping_rtn"
7
- version = "0.0.1"
7
+ version = "0.0.2"
8
8
  authors = [
9
9
  { name="Claire Harmon", email="ceharmon220@gmail.com" },
10
10
  ]
@@ -22,6 +22,9 @@ class RtnSingleTeamYear(object):
22
22
  if not hasattr(self, 'team_id_map'):
23
23
  self.team_id_map = self.get_team_mapping()
24
24
 
25
+ if self.team_name and self.team_name not in self.team_id_map.keys():
26
+ raise ValueError(f'Unknown team name: {self.team_name}')
27
+
25
28
  return self.team_id_map.get(self.team_name, -1)
26
29
  # if self.team_name in self.team_id_map.keys():
27
30
  # return self.team_id_map[self.team_name]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scraping-rtn
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: package to scrape gymnastics data from Road To Nationals
5
5
  Author-email: Claire Harmon <ceharmon220@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/cgn-charmon/scraping_rtn
File without changes
File without changes
File without changes