mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-09-07 07:32:39 +00:00
Added DomainTrending seems working.
Started search features with related html pages, not finish yet.
This commit is contained in:
parent
8c1eeea6e6
commit
7ff9b9a583
8 changed files with 269 additions and 18 deletions
|
@ -30,3 +30,12 @@ class Date(object):
|
|||
|
||||
def _set_day(self, day):
|
||||
self.day = day
|
||||
|
||||
def substract_day(self, numDay):
|
||||
import datetime
|
||||
computed_date = datetime.date(int(self.year), int(self.month), int(self.day)) - datetime.timedelta(numDay)
|
||||
comp_year = str(computed_date.year)
|
||||
comp_month = str(computed_date.month).zfill(2)
|
||||
comp_day = str(computed_date.day).zfill(2)
|
||||
return comp_year + comp_month + comp_day
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue