Skip to content
Snippets Groups Projects

Sc204/alg in output

Merged Ghost User requested to merge SC204/alg-in-output into SC203/switch-algs
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -3,6 +3,7 @@ import os
from filereader import CSVReader, CSVWriter
from utils import id_regex, shadow_regex
from time import localtime, strftime
class Controller:
@@ -230,8 +231,9 @@ class Controller:
file_name: String that will be the start of the file name
Returns:
title: String starting with file_name, then the algorithm
last used
last used, then the date and as last the time
"""
algorithm = self._model.last_used_algorithm()
title = "{}_{}.csv".format(file_name, algorithm)
time = strftime("%d%m%y_%H%M%S", localtime())
title = "{}_{}_{}.csv".format(file_name, algorithm, time)
return title
Loading