Skip to content

Commit

Permalink
Remove "Polevka:" from name
Browse files Browse the repository at this point in the history
  • Loading branch information
trnila committed Nov 9, 2023
1 parent 190b50b commit 1aaca25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lunches.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ def gather_restaurants(allowed_restaurants=None):
def cleanup(restaurant):
def fix_name(name):
name = unescape(name)
name = re.sub('^\s*Polévka:', '', name)
name = re.sub('<[^<]+?>', '', name)
name = re.sub('\s*(,|:)\s*', '\\1 ', name)
name = re.sub('\d+\s*(g|ml|l|ks) ', '', name)
Expand Down

0 comments on commit 1aaca25

Please sign in to comment.