@@ -1530,7 +1530,7 @@ def html_format(configuration, ret_val, ret_msg, out_obj):
15301530 <th>State</th>
15311531 <th>Kind</th>
15321532 <th>Label</th>
1533- <th>Expire </th>
1533+ <th>End Date </th>
15341534 <th>Actions</th>
15351535 </tr>
15361536</thead>
@@ -1903,7 +1903,7 @@ def html_format(configuration, ret_val, ret_msg, out_obj):
19031903 skip_list = i .get ('skip_list' , [])
19041904 optional_cols = [('access' , 'Access' ), ('created' , 'Created' ),
19051905 ('active' , 'Active' ), ('owner' , 'Owner' ),
1906- ('invites' , 'Invites' ), ('expire' , 'Expire' ),
1906+ ('invites' , 'Invites' ), ('expire' , 'Expire' ),
19071907 ('single_file' , 'Single file' ),
19081908 ]
19091909 # IMPORTANT: AdBlock Plus hides elements with class sharelink(s)
@@ -2749,7 +2749,7 @@ def file_format(configuration, ret_val, ret_msg, out_obj):
27492749 content_type = val
27502750 if content_type in ('text/plain' , 'text/html' ):
27512751 render_text , render_errors = True , True
2752- #_logger.debug("render output in file_format: %s (%s %s)" %
2752+ # _logger.debug("render output in file_format: %s (%s %s)" %
27532753 # (out_obj, render_text, render_errors))
27542754 for entry in out_obj :
27552755 if entry ['object_type' ] == 'file_output' :
@@ -2816,7 +2816,7 @@ def format_output(
28162816 """This is the public method that should be called from other scripts"""
28172817
28182818 logger = configuration .logger
2819- #logger.debug("format output to %s" % outputformat)
2819+ # logger.debug("format output to %s" % outputformat)
28202820 valid_formats = get_valid_outputformats ()
28212821 (val_ret , val_msg ) = validate (out_obj )
28222822 if not val_ret :
@@ -2867,7 +2867,7 @@ def format_output(
28672867 if not outputformat in ('txt' , 'html' , 'file' ):
28682868 out_obj = [i for i in out_obj if i ['object_type' ] != 'wsgi' ]
28692869
2870- #logger.debug("%s formatting output" % outputformat)
2870+ # logger.debug("%s formatting output" % outputformat)
28712871 try :
28722872 # return eval('%s_format(configuration, ret_val, ret_msg, out_obj)' %
28732873 # outputformat)
@@ -2900,10 +2900,10 @@ def format_output(
29002900def format_timedelta (timedelta ):
29012901 """Formats timedelta as '[Years,] [days,] HH:MM:SS'"""
29022902 years = timedelta .days // 365
2903- days = timedelta .days - (years * 365 )
2903+ days = timedelta .days - (years * 365 )
29042904 hours = timedelta .seconds // 3600
2905- minutes = (timedelta .seconds - (hours * 3600 )) // 60
2906- seconds = timedelta .seconds - (hours * 3600 ) - (minutes * 60 )
2905+ minutes = (timedelta .seconds - (hours * 3600 )) // 60
2906+ seconds = timedelta .seconds - (hours * 3600 ) - (minutes * 60 )
29072907
29082908 hours_str = "%s" % hours
29092909 if hours < 10 :
0 commit comments