Import/Export

This commit is contained in:
2025-10-24 21:04:46 +02:00
parent 5b476b6675
commit 1cd4aebbeb
6 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class IgelExportService {
// Immer frisch laden
final igelList = await igelRepo.list();
final sep = ';';
const sep = ';';
final sb = StringBuffer();
// Kopfzeile nur Felder, die deine Models wirklich haben
+2 -2
View File
@@ -19,7 +19,7 @@ class IgelRepository {
DateTime? rescuedAt,
String? location}) async {
String? fmtDate(DateTime? d) =>
d == null ? null : d.toIso8601String().split('T').first;
d?.toIso8601String().split('T').first;
final res = await api.post<dynamic>('/igel', {
'name': name,
'note': note,
@@ -53,7 +53,7 @@ class IgelRepository {
DateTime? rescuedAt,
String? location}) async {
String? fmtDate(DateTime? d) =>
d == null ? null : d.toIso8601String().split('T').first;
d?.toIso8601String().split('T').first;
final body = {
'name': name,
'note': note,