Famcy/_CONSOLE_FOLDER_/season/page.py
def make_time_readable(self,data,columns_name,columns_mapping):
        """
        Use to make time friendly to read
        """
        for row in data:
            for column in columns_name:
                if len(row[column]) == 15:
                    row[columns_mapping[column]] = str(row[column][:2]+"年 "+row[column][2:4]+"月"+row[column][4:6]+"日 "+row[column][6:8]+":"+row[column][8:10]+":"+row[column][10:12])
                if len(row[column]) == 12:
                    row[columns_mapping[column]] = str(row[column][:2]+"年 "+row[column][2:4]+"月"+row[column][4:6]+"日 "+row[column][6:8]+":"+row[column][8:10]+":"+row[column][10:12])

        return data

        Use to make time friendly to read
        
Use to make time friendly to read
Use to make time friendly to read
def make_time_readable(self,data,columns_name,columns_mapping):
        for row in data:
            for column in columns_name:
                if len(row[column]) == 15:
                    row[columns_mapping[column]] = str(row[column][:2]+"年 "+row[column][2:4]+"月"+row[column][4:6]+"日 "+row[column][6:8]+":"+row[column][8:10]+":"+row[column][10:12])
                if len(row[column]) == 12:
                    row[columns_mapping[column]] = str(row[column][:2]+"年 "+row[column][2:4]+"月"+row[column][4:6]+"日 "+row[column][6:8]+":"+row[column][8:10]+":"+row[column][10:12])
        return data
def make_time_readable ( self , data , columns_name , columns_mapping ) : for row in data : for column in columns_name : if len ( row [ column ] ) == 15 : row [ columns_mapping [ column ] ] = str ( row [ column ] [ : 2 ] + "年 "+r o w[c o lumn][ 2 : 4 ] + " 月 "+row [ col u mn][4: 6 ] + " 日 " +row[c o lum n ][6:8] + " : " + r o w[c o lum n ][8:10 ] + " : "+ r o w[c o lum n ][10:1 2 ] ) if len ( row [ column ] ) == 12 : row [ columns_mapping [ column ] ] = str ( row [ column ] [ : 2 ] + "年 "+r o w[c o lumn][ 2 : 4 ] + " 月 "+row [ col u mn][4: 6 ] + " 日 " +row[c o lum n ][6:8] + " : " + r o w[c o lum n ][8:10 ] + " : "+ r o w[c o lum n ][10:1 2 ] ) return data
Use to make time friendly to read
Use to make time friendly to read
"""
        Use to make time friendly to read
        """
self
data
columns_name
columns_mapping