kanbn
This commit is contained in:
@ -472,7 +472,7 @@ internal abstract class GenealogicalDataCommunication
|
||||
for (int i = 0; i < familyGroupLines.Count; i++)
|
||||
lines.AddRange(familyGroupLines[i]);
|
||||
lines.AddRange(footerLines);
|
||||
File.WriteAllLines(Path.Combine(a2PeopleContentDirectory, $"{dateTime.Year}-ged", $"{dateTime.Year}-Week-{weekOfYear}", $"{ticks}.ged"), lines);
|
||||
File.WriteAllLines(Path.Combine(a2PeopleContentDirectory, $"{dateTime.Year}-GenealogicalDataCommunication", $"{dateTime.Year}-Week-{weekOfYear}", $"{ticks}.ged"), lines);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -59,20 +59,20 @@ internal abstract class MarkDown
|
||||
lines.Add($"surname: '{personName.Last.Value}'");
|
||||
if (!string.IsNullOrEmpty(jrOrSr))
|
||||
lines.Add($"suffix: '{jrOrSr.Trim()}'");
|
||||
lines.Add($"sex: {genealogicalDataCommunication.Sex}");
|
||||
lines.Add($"sex: '{genealogicalDataCommunication.Sex}'");
|
||||
if (genealogicalDataCommunication.Birth is not null)
|
||||
{
|
||||
lines.Add($"date: {genealogicalDataCommunication.Birth.Value:yyyy-MM-ddT00:00:00.000Z}");
|
||||
Models.PersonBirthday personBirthday = new(genealogicalDataCommunication.Birth.Value);
|
||||
if (!IPersonBirthday.IsCounterPersonBirthday(personBirthday))
|
||||
lines.Add($"birthDate: {genealogicalDataCommunication.Birth.Value:dd MMM yyyy}");
|
||||
lines.Add($"birthDate: '{genealogicalDataCommunication.Birth.Value:dd MMM yyyy}'");
|
||||
}
|
||||
if (genealogicalDataCommunication.Death is not null)
|
||||
{
|
||||
if (genealogicalDataCommunication?.Death is null || genealogicalDataCommunication.Death == genealogicalDataCommunication.Birth || IPersonBirthday.IsCounterPersonBirthday(new(genealogicalDataCommunication.Death.Value)))
|
||||
lines.Add("isDead: true");
|
||||
else
|
||||
lines.Add($"deathDate: {genealogicalDataCommunication.Death.Value:dd MMM yyyy}");
|
||||
lines.Add($"deathDate: '{genealogicalDataCommunication.Death.Value:dd MMM yyyy}'");
|
||||
}
|
||||
if (isDefaultName)
|
||||
lines.Add($"{nameof(isDefaultName)}: {isDefaultName}");
|
||||
|
Reference in New Issue
Block a user