We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80eb4d commit ac5cb3bCopy full SHA for ac5cb3b
1 file changed
lib/others/csv_service.dart
@@ -46,17 +46,10 @@ class CsvService {
46
final directory = await getInstrumentDirectory(instrumentName);
47
48
String finalFileName;
49
- fileName = fileName.trim();
50
if (fileName.isEmpty) {
51
finalFileName =
52
'${DateFormat('yyyy-MM-dd_HH-mm-ss').format(DateTime.now())}.csv';
53
} else {
54
- if (fileName.endsWith('.csv')) {
55
- fileName = fileName.substring(0, fileName.length - 4);
56
- }
57
- if (fileName.length > 196) {
58
- fileName = fileName.substring(0, 196);
59
60
finalFileName = fileName.endsWith('.csv') ? fileName : '$fileName.csv';
61
}
62
0 commit comments