Changeset - f6cd2511b9f5
[Not reviewed]
default
0 1 0
timeless@gmail.com - 10 years ago 2016-05-03 14:06:59
timeless@gmail.com
spelling: milliseconds
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/cleanup.py
Show inline comments
 
@@ -70,13 +70,13 @@ class Command(BasePasterCommand):
 
        """
 
        Extract the date part from rm__<date> pattern of removed repos,
 
        and convert it to datetime object
 

	
 
        :param name:
 
        """
 
        date_part = name[4:19]  # 4:19 since we don't parse milisecods
 
        date_part = name[4:19]  # 4:19 since we don't parse milliseconds
 
        return datetime.datetime.strptime(date_part, '%Y%m%d_%H%M%S')
 

	
 
    def command(self):
 
        #get SqlAlchemy session
 
        self._init_session()
 

	
0 comments (0 inline, 0 general)