Patcharapron commited on
Commit
39b160a
·
verified ·
1 Parent(s): a218bf5

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -5
utils.py CHANGED
@@ -8,7 +8,6 @@ import re
8
  def postprocess(text: str):
9
  """
10
  postprocess - remove common values in scraped dataset
11
-
12
  Args:
13
  text (str): the text to postprocess
14
  """
@@ -52,13 +51,11 @@ def make_email_link(
52
  ):
53
  """
54
  email_link - generate an email link
55
-
56
  Args:
57
  subject (str, optional): the subject of the email. Defaults to "Email subject - This was generated by Postbot".
58
  link_text (str, optional): the text of the link. Defaults to "click to open in your email client".
59
  body (str, optional): the body of the email. Defaults to None.
60
  tag_placeholder (str, optional): the placeholder for the tag. Defaults to "PLACEHOLDER".
61
-
62
  Returns:
63
  str: the email link, in the form of an html link
64
  """
@@ -139,7 +136,6 @@ def make_mailto_form(
139
  <body>
140
  <h1>Adjust and Open in your mail client:</h1>
141
  <form action="mailto:" method="get" enctype="text/plain">
142
-
143
  <div>
144
  <label for="cc">CC Email:
145
  <input type="text" name="cc" id="cc" value="{cc_email}"/>
@@ -162,4 +158,4 @@ def make_mailto_form(
162
  </body>
163
  </html>"""
164
 
165
- return template
 
8
  def postprocess(text: str):
9
  """
10
  postprocess - remove common values in scraped dataset
 
11
  Args:
12
  text (str): the text to postprocess
13
  """
 
51
  ):
52
  """
53
  email_link - generate an email link
 
54
  Args:
55
  subject (str, optional): the subject of the email. Defaults to "Email subject - This was generated by Postbot".
56
  link_text (str, optional): the text of the link. Defaults to "click to open in your email client".
57
  body (str, optional): the body of the email. Defaults to None.
58
  tag_placeholder (str, optional): the placeholder for the tag. Defaults to "PLACEHOLDER".
 
59
  Returns:
60
  str: the email link, in the form of an html link
61
  """
 
136
  <body>
137
  <h1>Adjust and Open in your mail client:</h1>
138
  <form action="mailto:" method="get" enctype="text/plain">
 
139
  <div>
140
  <label for="cc">CC Email:
141
  <input type="text" name="cc" id="cc" value="{cc_email}"/>
 
158
  </body>
159
  </html>"""
160
 
161
+ return template