eshan6704 commited on
Commit
f0e5be0
·
verified ·
1 Parent(s): efa78ba

Update common.py

Browse files
Files changed (1) hide show
  1. common.py +0 -21
common.py CHANGED
@@ -201,24 +201,3 @@ SCROLL_WRAP = """
201
  </div>
202
  """
203
 
204
- # ======================================================
205
- # Date helpers
206
- # ======================================================
207
- def today_str():
208
- return datetime.date.today().strftime("%d-%m-%Y")
209
-
210
- def yesterday_str():
211
- return (datetime.date.today() - datetime.timedelta(days=1)).strftime("%d-%m-%Y")
212
-
213
- def last_year_date(d):
214
- dt = datetime.datetime.strptime(d, "%d-%m-%Y")
215
- new_dt = dt.replace(year=dt.year - 1)
216
- return new_dt.strftime("%d-%m-%Y")
217
-
218
- # ======================================================
219
- # HTML wrapper
220
- # ======================================================
221
- def wrap(html):
222
- if html is None:
223
- return "<h3>No Data</h3>"
224
- return SCROLL_WRAP.replace("{{HTML}}", html)
 
201
  </div>
202
  """
203