Skip to content

Commit

Permalink
Fixed lint issue with Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
deusofgamers committed Oct 30, 2023
1 parent 3557091 commit c235ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions performers/siteS3xusPerformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_height(self, response):
if 'height' in self.selector_map:
height = self.process_xpath(response, self.get_selector_map('height')).get()
if height:
str_height = re.findall('(\d{1,2})', height)
str_height = re.findall(r'(\d{1,2})', height)
if len(str_height):
feet = int(str_height[0])
if len(str_height) > 1:
Expand All @@ -54,8 +54,8 @@ def get_height(self, response):
def get_weight(self, response):
if 'weight' in self.selector_map:
weight = self.process_xpath(response, self.get_selector_map('weight')).get()
if weight and re.match('\d+', weight):
weight = re.search('(\d+)', weight).group(1)
if weight and re.match(r'\d+', weight):
weight = re.search(r'(\d+)', weight).group(1)
weight = int(weight)
if weight:
weight = str(round(weight*.453592)) + "kg"

Check failure on line 61 in performers/siteS3xusPerformer.py

View workflow job for this annotation

GitHub Actions / Lint

[flake8] reported by reviewdog 🐶 missing whitespace around arithmetic operator Raw Output: ./performers/siteS3xusPerformer.py:61:46: E226 missing whitespace around arithmetic operator
Expand Down

0 comments on commit c235ce7

Please sign in to comment.