Import/Export
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user