def normalize_timestamps(sid):
 sub_paths = [store.path(sid, submission.filename) for submission in g.source.submissions]
 if (len(sub_paths) > 1):
  args = ['touch']
  args.extend(sub_paths[:(-1)])
  rc = subprocess.call(args)
  if (rc != 0):
   app.logger.warning(("Couldn't normalize submission timestamps (touch exited with %d)" % rc))

def normalize_timestamps ( sid ) : sub_paths = [ store . path ( sid , submission . filename ) for submission in g . source . submissions ] if ( len ( sub_paths ) > 1 ) : args = [ 'touch' ] args . extend ( sub_paths [ : ( - 1 ) ] ) rc = subprocess . call ( args ) if ( rc != 0 ) : app . logger . warning ( ( "Couldn't normalize submission timestamps (touch exited with %d)" % rc ) )
update the timestamps on all of the sources submissions to match that of the latest submission .